Page 1 of 1

Example csv time varying covariates in r mark

PostPosted: Mon Nov 14, 2022 3:02 am
by colbyslezak
Hey everyone,

I’m trying to do a known fates survival analysis in r mark. I want to calculate weekly survival for 146 birds spanning over a 7 year period. Im hoping to calculate weekly survival with variables such as site, year, habitat quality and weekly precipitation/temperature as predictors. Im unsure what the csv should look like especially for the time varying covariates temp and precip. Does anyone have an example csv file where they did this that I could see? I’m confused about the set up.

Thanks for the help!

Colby

Re: Example csv time varying covariates in r mark

PostPosted: Mon Nov 14, 2022 9:12 am
by jlaake
Time varying covariates don't go in the data file(csv for you) unless the covariates differ across nests. They are added to the design data which are created with the make.design.data function after process.data. You need to spend time reading the documentation including the workshop notes. You get the documentation link when you type library (RMark) in R. Also look at mallard example for nest survival.