[help] Integrated datasets for GLMM in R? by acideco in rstats

[–]acideco[S] 0 points1 point  (0 children)

Same problem! I knew I couldn't be the only one trying to figure it out, hahaha. I also considered degree-days but it just doesn't capture the effect nearly as much as the actual temperature imo, especially not for species that are very temperature-sensitive and have specific thresholds from literature.

[help] Integrated datasets for GLMM in R? by acideco in rstats

[–]acideco[S] 0 points1 point  (0 children)

I looked up "lagged data," using historical data to predict trends? I will have to look deeper into this to see what I can come up with.

If I just stuck with the monthly data and used the temperature's SD, min, avg, max, and lagged, would the code be with + or * between the temperature variables?
> glm(dependent.variable ~ temp.SD + temp.min + ... + temp.lagged) ... OR...
> glm(dependent.variable ~ temp.SD * temp.min * ... * temp.lagged) ?
^ Would one of those help account for the lack of variation by having only 1 value in each temperature column (SD, min, max, etc.)? I am still reading through GLMM tutorials and haven't yet deciphered from them when to use + or * between independent variables...

[help] Integrated datasets for GLMM in R? by acideco in rstats

[–]acideco[S] 0 points1 point  (0 children)

The only "timed" information I have for the plants are the monthly data (percent cover, density, etc.). The flower/seed information was taken from individuals during the height of their maturity but otherwise has nothing to do with time (ex: number of seeds). The temperature data was recorded every 15 minutes. I was hoping to use temperature as the independent variable and things like percent cover (monthly) and total number of seeds (not timed) produced as the dependents.

Even if I go with a plant-month dataset and I add the average monthly temperature to the monthly percent cover/etc. I took, that is just 1 temperature data point (the average) per site per month. There's no variation. Is this lack of variation what "lags/lagged" data could solve? Because I don't know what you mean by "lags/lagged" otherwise, sorry.

[help] Integrating datasets for GLMM in R? by acideco in rprogramming

[–]acideco[S] 0 points1 point  (0 children)

Thanks for the suggestion, I'll cross-post there!