Accounting for covariates: time-varying capture effort

Hi,
I have just starting using RMark this past week. I've been having a lot of success fitting models with various age.bins, time.bins, and continous time relationships but cannot figure out how to include a continuous covariate (with one value per capture occasion) in models.
I have a 'capture effort' measure which is in fact the number of trap days in a year. Right now this is a separate data frame called 'effort' which has two columns 'Year' and 'No.CapDays'. It has 22 rows as there are 22 years worth of data - i.e. one record per year.
So far, my code looks as follows:
caphist.pr <- process.data(data=caphist,begin.time=1988,groups=c('Sex','age'),age.var=2,initial.ages=c(0,1,2,3,4,5,6,7,8))
dd1 <- make.design.data(caphist.pr,parameters=list(Phi=list(age.bins=c(0,0.5,1,7,30)),p=list(type='constant')))
mod1 <- mark(data=caphist.pr,dd1,model.parameters=list(Phi=list(formula=~age+Sex),p=list(formula=~1)),realvcv=TRUE,adjust=TRUE)
I want to have a formula where p is a function of 'No.CapDays', but I cannot figure out where to involve my covariate dataframe in this modelling process.
I realize this may be a simple question and have tried reading for help on it. . . but have gotten confused in all the text about components and individual covariates. . . I don't think I want that I just have a variable (No.CapDays) that changes each year (note: it does NOT steadily increase or decrease).
I would really appreciate a tip or two on this!
Many thanks,
Miranda
I have just starting using RMark this past week. I've been having a lot of success fitting models with various age.bins, time.bins, and continous time relationships but cannot figure out how to include a continuous covariate (with one value per capture occasion) in models.
I have a 'capture effort' measure which is in fact the number of trap days in a year. Right now this is a separate data frame called 'effort' which has two columns 'Year' and 'No.CapDays'. It has 22 rows as there are 22 years worth of data - i.e. one record per year.
So far, my code looks as follows:
caphist.pr <- process.data(data=caphist,begin.time=1988,groups=c('Sex','age'),age.var=2,initial.ages=c(0,1,2,3,4,5,6,7,8))
dd1 <- make.design.data(caphist.pr,parameters=list(Phi=list(age.bins=c(0,0.5,1,7,30)),p=list(type='constant')))
mod1 <- mark(data=caphist.pr,dd1,model.parameters=list(Phi=list(formula=~age+Sex),p=list(formula=~1)),realvcv=TRUE,adjust=TRUE)
I want to have a formula where p is a function of 'No.CapDays', but I cannot figure out where to involve my covariate dataframe in this modelling process.
I realize this may be a simple question and have tried reading for help on it. . . but have gotten confused in all the text about components and individual covariates. . . I don't think I want that I just have a variable (No.CapDays) that changes each year (note: it does NOT steadily increase or decrease).
I would really appreciate a tip or two on this!
Many thanks,
Miranda