Hello,
I've recently moved from Mark to RMark but have a couple of questions I'd be very grateful for help with!
I'm doing a multistate analysis of 651 individuals over 10 capture ocassions (Spring and Autumn for the years 2004-2008) and 6 locations. All individuals are grouped in the following categories (adult male, juvenile male, adult female, juvenile female), for example:
00A0BG0000 0 0 1 0;
All juveniles are born at roughly the same time and survival is thought to vary in their first year. This means if juveniles were caught in spring their first two capture occassions (spring and autumn) would be different but if they were not caught until autumn only their first capture occassion would be different:
1 1 2 2 2 2 2 2 2
...1 2 2 2 2 2 2 2
......1 1 2 2 2 2 2
.........1 2 2 2 2 2
............1 1 2 2 2
...............1 2 2 2
..................1 1 2
.....................1 2
........................1
I want to code juveniles as the above PIM and adults as just number 2, so I can then combine this with season and sex in my models to create more complicated analyses. The coding I've used so far is:
-------------------------------------------------------------------------------------
#CONVERT .INP FILE TO R FORMAT AND SPECIFY GROUPS:
wharfedale=convert.inp("Multi-state (seasons).inp", group.df=data.frame(sex=c(rep("Male",2),rep("Female",2)),age=rep(c("Adult","Juvenile"),2)))
#CREATE THE PROCESSED DATAFRAME:
wharfedale.process=process.data(wharfedale,model="Multistrata", begin.time=0, time.intervals=c(3.27,9.27,2.3,8.73,2.37,9.7,2.5,9.9,2.03), groups=c("sex","age"), age.var=2, initial.age=c(1,0))
#CREATE THE DESIGN DATA:
wharfedale.ddl=make.design.data(wharfedale.process)
-------------------------------------------------------------------------------------
but I'm unsure of how to proceed (age bins or something more complicated etc). I'm also a bit unsure of my begin.time and time.intervals. I've coded my time intervals in months as I want seasonal parameter estimates but this seems to affect the way my ages are displayed (i.e. in fractions of months!). Hopefully this won't be an issue though if I can get my PIM coding right?
I hope that made sense and thank you in advance for any help!