Predicted Nest Survival at Specified Covariate Values

Hi,
Can anyone provide an example of how to generate predicted Nest Survival values in RMark for varying levels of a continuous covariate. There is a nice example in the RMark appendix of the MARK book of how to do this with varying levels of "Nest Age" and a continuous covariate, but I've had no luck applying the example to models that just include a continuous variable (not Nest Age). Here's what I've tried, but I'm pretty sure I have the structure of the design matrix all wrong. Any help would be appreciated.
At this point, I should probably just use regular MARK, but I like working in R!
Thanks,
Mike
Can anyone provide an example of how to generate predicted Nest Survival values in RMark for varying levels of a continuous covariate. There is a nice example in the RMark appendix of the MARK book of how to do this with varying levels of "Nest Age" and a continuous covariate, but I've had no luck applying the example to models that just include a continuous variable (not Nest Age). Here's what I've tried, but I'm pretty sure I have the structure of the design matrix all wrong. Any help would be appreciated.
- Code: Select all
grsp.veg.height=mark(grsp,nocc=95,model="Nest",model.parameters=list(S=list(formula=~veg.height)))
nocc=95
design=matrix(cbind(rep(1,(nocc-1)),seq(min(grsp$veg.height),max(grsp$veg.height),length=nocc-1)),nocc-1,2)
get.real(grsp$veg.height,parameter="S",beta=grsp.vegheight$results$beta$estimate,se=T,
design=design)
At this point, I should probably just use regular MARK, but I like working in R!
Thanks,
Mike