- Code: Select all
LYC=convert.inp("C:/Users/abreton.CNRDOM/Documents/CSU_Project/MARK_Analyses/LYC_2004_2008/EH_File_LYC_2004_10_Bins.inp",
group.df=data.frame(age.yr=c("SA04","A04","SA05","A05","SA06","A06","SA07","A07","SA08","A08","SA09","A09","SA10","A10"),
aclass=rep(c("SA","A"),7),
syear=c(rep("2004",2),rep("2005",2),rep("2006",2),rep("2007",2),rep("2008",2),rep("2009",2),rep("2010",2))),
covariates=c("L1","L2","L3","L4","L5","L6","L7","L8","L9","L10","L11","may1Bin","RMiBin"),use.comments=FALSE)
Covariates L1-L11 are fish Lengths on occasions 1-11. Elsewhere, I used a function to predict lengths on ALL passes from available lengths (usually just one). Here's a sample showing the first 5 fish in the dataset,
- Code: Select all
> LYC.huggins$data[1:5,]
ch freq age.yr aclass syear L1 L2 L3 L4 L5 L6 L7 L8 L9 L10 L11 may1Bin RMiBin group
1:6 00001...... 1 SA04 SA 2004 177 177 177 177 182 0 0 0 0 0 0 170 115 8
1:11 00001...... 1 SA04 SA 2004 144 144 144 144 150 0 0 0 0 0 0 140 115 8
1:12 00001...... 1 SA04 SA 2004 181 181 181 181 186 0 0 0 0 0 0 180 112 8
1:17 00001...... 1 SA04 SA 2004 162 162 162 162 168 0 0 0 0 0 0 160 113 8
1:20 00011...... 1 SA04 SA 2004 170 170 170 170 170 0 0 0 0 0 0 170 115 8
Note: there were only 5 occasions in this year (group), other years in this dataset had 11 occasions.
In the design matrix in MARK I'm able to specify L1-L11 as time-varying individual covariates. This is accomplished by populating a single beta column with the covariate labels. For example (intercept+Length model),
- Code: Select all
B1 B2
1 L1
1 L2
1 L3
1 L4
1 L5
1 L6
1 L7
1 L8
1 L9
1 L10
1 L11
1 L1
1 L2
I'm fitting data to Huggins without mixtures. Thus, L1-L11 will be repeated for groups associated with p. And L2-L11 will be repeated for the same groups associated with c.
In the language of RMark, how do I incorporate L1-L11 as a (single column vector) time-varying individual covariate in the design data? I've searched the forum, read the FM appendix (not enough apparently), and I'm still stumped. Note page C.78 in the Mark book, "Now let’s consider time-varying individual covariates..." I'm still stumped. Thanks for any assistance, and the previously mentioned resources which allowed me to solve every other challenge I encountered. - andre