[R] NA when trying to calculate AIC value for DLNM
Malgosia Lubczynska
gosia_jl at hotmail.com
Mon Feb 9 15:28:05 CET 2015
Dear all,
I am trying to run a sensitivity analysis for a DLNM combined with a case crossover design and select the best parameters based on AIC values for different model set-ups.
model <- glm(mortality ~ cb.temp + ns(soo, 7*7) + dow, family=quasipoisson(), my.data)
where cb.temp is the crossbasis matrix for the exposure (temperature)
However, the output for the AIC calculations equals NA.
Does anyone know how to obtain a correct AIC for a DLNM model?
Thank you,
Gosia
[[alternative HTML version deleted]]
More information about the R-help
mailing list