I'm trying to analyze daily nest survival in RMark and struggling to combine spatial variables (habitat type etc) with daily temperature. Here is my code which works:
- Code: Select all
S.global_noVeg = mark(data, nocc = 44, model = "Nest", model.name = "S.global_noVeg",
groups = c('MainIsland','Landscape'),
model.parameters = list(S=list(formula = ~ MainIsland + Landscape +
DistWatM)))
In this case, data is a data frame of 81 observations, each row is one nest. Mainland, Landscape and DistWatM are covariates when each nest has 1 value corresponding to it. How do I add temperature here, which is dataframe of 44 rows (N of days in the season) and 2 columns i.e. date and temperature?
I read http://www.phidot.org/forum/viewtopic.php?f=1&t=4061 and spent a while with "Gentle introduction..." but couldn't figure this out...
Happy to provide data if there is a way to upload data here.
Thanks!