time-varying covariates & time-individual-varying covariates

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

time-varying covariates & time-individual-varying covariates

Postby Knabi » Sat Feb 25, 2017 10:41 am

Hello,
I am trying to implement a CJS Model with 3 covariates in RMark. Two of my covariates (days spent in field per year "y" and tagloss frequency per year "TL") are only time-varying but for all individuals the same, the other covariate (number of times individual has been seen every year "seen") is time and individual varying.
Per individual I have 13 years data.
At the moment my input file looks like this:
ch y1 y2 y3 y4 y5 y6 y7 y8 y9 y10 y11 y12 y13 seen1 seen2 seen3 seen4 seen5 seen6 seen7 seen8 seen9 seen10 seen11 seen12 seen13 TL1 TL2 TL3 TL4 TL5 TL6 TL7 TL8 TL9 TL10 TL11 TL12 TL13
1101111111111 116 72 39 69 147 143 91 86 113 114 95 70 90 74 8 0 3 10 61 41 14 42 42 53 5 8 0.1716 0.0571 0.0402 0.076 0.2763 0.0795 0.0406 0.3245 0.1770 0.1437 0.1 0.0529 0.0153
1111111111101 116 72 39 69 147 143 91 86 113 114 95 70 90 176 109 36 88 180 114 94 42 100 24 1 0 1 0.1716 0.0571 0.0402 0.076 0.276 0.0795 0.04067 0.3245 0.1770 0.14376 0.1 0.0529 0.0153

How can I implement that in the RMark code?
Thanks for any inputs!
Knabi
 
Posts: 6
Joined: Fri Feb 24, 2017 12:30 pm

Re: time-varying covariates & time-individual-varying covari

Postby Bryan Hamilton » Sat Feb 25, 2017 2:57 pm

Have you worked through Appendix C of the MarkBook? There are examples in there that are very similar to what you are trying to do. There are quite a few good workshop notes on RMark floating around too.

I would start with Appendix C. There should be code in there that you can recycle for your data.
Bryan Hamilton
 
Posts: 111
Joined: Thu Jun 15, 2006 11:36 am
Location: Great Basin National Park

Re: time-varying covariates & time-individual-varying covari

Postby jlaake » Sat Feb 25, 2017 9:42 pm

Bryan is quite correct that this is covered in detail in Appendix C and in the workshop notes. Do NOT use the number of times seen in a year as a covariate for p in that year. However, you can use it as a covariate for p for the following year. That is similar to the td example in the notes.

--jeff
jlaake
 
Posts: 1417
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA

Re: time-varying covariates & time-individual-varying covari

Postby Knabi » Mon Feb 27, 2017 4:28 am

ok, thanks to both of you!
Knabi
 
Posts: 6
Joined: Fri Feb 24, 2017 12:30 pm


Return to RMark

Who is online

Users browsing this forum: No registered users and 17 guests