Example csv time varying covariates in r mark

posts related to the RMark library, which may not be of general interest to users of 'classic' MARK

Example csv time varying covariates in r mark

Postby colbyslezak » Mon Nov 14, 2022 3:02 am

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
colbyslezak
 
Posts: 2
Joined: Thu Jan 04, 2018 3:00 pm

Re: Example csv time varying covariates in r mark

Postby jlaake » Mon Nov 14, 2022 9:12 am

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.
jlaake
 
Posts: 1417
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA


Return to RMark

Who is online

Users browsing this forum: No registered users and 9 guests