Coding for empty levels in grouping factors

Hi all,
A quick question about levels in factor covariates used as groups in my secr model.
I want to run a multisession model with a covariate (=species) for which not all levels are present every session (=trapping year). In other words, for some species I didn't catch any in some years.
In the data entry guidance pdf, it says that ordinarily levels for factor covariates have to be equal across sessions, and if you want to override this then you have to specify the levels manually.
I've tried adding something like
Am I going about this the wrong way? Sorry if this is a rather idiot question, I'm a relative R novice and this seemed like the intuitive step.
A quick question about levels in factor covariates used as groups in my secr model.
I want to run a multisession model with a covariate (=species) for which not all levels are present every session (=trapping year). In other words, for some species I didn't catch any in some years.
In the data entry guidance pdf, it says that ordinarily levels for factor covariates have to be equal across sessions, and if you want to override this then you have to specify the levels manually.
I've tried adding something like
- Code: Select all
levels=c("species1", "species2", "species3")
- Code: Select all
read.capthist
Am I going about this the wrong way? Sorry if this is a rather idiot question, I'm a relative R novice and this seemed like the intuitive step.