individual covariates with time variation

Hi, I am trying to run a CJS model with different weights for each individual during each capture period. Furthermore this is a multi-group model and I have been input the data using import.chdata. I'm attaching a sample of my text file. First, I was wondering if for any animal without a weight (either because the animal was not captured or weight information was not collected) do I just put a zero for that period?
[unparseable or potentially dangerous latex formula]
To import I have used:
This all goes fine, but then I'm not quite sure where to proceed after initial process.data.
Do I need to make a dummy time variable as I don't have years like used in the example in the book. Basically each weight corresponds to a trapping period and there were four so we have four weights for each individual. We are particularly interested in how weight may affect survival (ie are heavier individuals more likely to survive than lighter ones). For some of our other species we cannot discern an ageclass so we were hoping to be able to use weight instead.
Thanks,
Amanda
[unparseable or potentially dangerous latex formula]
To import I have used:
- Code: Select all
rat<-import.chdata("rat.txt",field.types=c("f","f","f","n","n","n","n","n"))
This all goes fine, but then I'm not quite sure where to proceed after initial process.data.
- Code: Select all
rats.process=process.data(rats,model="CJS",groups=c("species", "ageclass", "trt"))
rats.ddl=make.design.data(rats.process)
Do I need to make a dummy time variable as I don't have years like used in the example in the book. Basically each weight corresponds to a trapping period and there were four so we have four weights for each individual. We are particularly interested in how weight may affect survival (ie are heavier individuals more likely to survive than lighter ones). For some of our other species we cannot discern an ageclass so we were hoping to be able to use weight instead.
Thanks,
Amanda