All,
Working with a simple nest survival model in RMark I am having some struggles (apparently) appropriately defining groups. I created a covariate (Group) in the data set, made it a factor on import
> str(vireo.data$Group)
Factor w/ 8 levels "1","2","3","4",..: 1 1 1 1 1 1 1 1 1 2 ...
and based on what I read in the RMark guide I put a groups= statement in my mark() call
dsr.g=mark(vireo.data, nocc=111, model="Nest", model.parameters=list(S=list(formula=~Group)), groups=c("1", "2", "3", "4", "5", "6", "7", "8"))
which then gives me the following error when I run my analysis.
> run.vireo=function()
+ {
+ dsr.g=mark(vireo.data, nocc=111, model="Nest", model.parameters=list(S=list(formula=~Group)), groups=c("1", "2", "3", "4" .... [TRUNCATED]
> vireo.results=run.vireo()
Error in `[.data.frame`(data, , groups[i]) : undefined columns selected
Since process.data does not exist for nest survival datatype (I think) I could not use the groups command there. Do I need to create an dummy variable for each factor level?
Any suggestions?
Bret
Mark 1 October build, using RMark v1.8.7 updated for 1 Oct Mark, R version 2.7.2.