简体   繁体   English

GAM 中的时间自相关

[英]Temporal autocorrelation in GAM

I'm modelling species count data that has been collected sporadically over the last ~40 years against a range of environmental predictors.我正在对过去大约 40 年中零星收集的物种计数数据与一系列环境预测指标进行建模。 At present, my GAM looks like this:目前,我的 GAM 是这样的:

k = gam(CountIndividuals ~ s(Date, bs = 'cr', k = 8) + 
s(ENSO, bs = 'cr', k = 4) + s(mean_wind_speed, bs = 'cr', k = 4) + 
s(CHL, bs = 'cr', k = 4) + s(SST, bs = 'cr', k = 4) + 
s(SIOD, bs = 'cr', k = 4), family = nb(link = log), 
data = Shy_Albatross, method = "REML")

I've been worried about autocorrelation in the variables, however upon inspecting k$residuals with ACF() and PACF() there didn't appear to be any autocorrelation.我一直担心变量的自相关性,但是在使用ACF()PACF()检查 k$residuals 时,似乎没有任何自相关性。

My question is whether I need to assess each variable in the model individually?我的问题是我是否需要单独评估模型中的每个变量? There should be autocorrelation in there values, however I'm not sure whether that is relevant.这些值应该存在自相关,但是我不确定这是否相关。

An assumption of the model is that the observations are conditionally independent.该模型的一个假设是观测值是条件独立的。 If you model the autocorrelation through terms in the model, and it is reasonable to expect that the smooth functions of Date and the other variables in the model are accounting for the temporal structure in the data such that once we consider the model, the observations are independent.如果您通过模型中的项对自相关进行建模,并且可以合理地预期Date的平滑函数和模型中的其他变量会考虑数据中的时间结构,因此一旦我们考虑模型,观察结果是独立的。

By looking at the residuals you are looking at the observations conditional upon the model.通过查看残差,您正在查看以模型为条件的观察结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM