I specify a model in MARK using the design matrix. I name the model c=p(.) and the DM is

I would like to extend this model by adding an individual covariate, result in the model c=p(.)*sp

I've tried to reproduce this analysis in RMark, but I'm at a loss on how to tell RMark to construct this design matrix. This is the code I used.
- Code: Select all
tr.models <- function() {
# specify models
c.pequal.dot <- list(formula = ~ 1, share = TRUE)
c.pequal.dot.sp <- list(formula = ~ sp, share = TRUE)
# collect models and run
cml <- create.model.list("Huggins")
tr.result <- mark.wrapper(cml, data = tr.process, ddl = tr.ddl, adjust = FALSE)
return(tr.result)
}
The results are (notice the number of parameters, they should be 1 and 2 respectively):
- Code: Select all
model npar AICc DeltaAICc weight Deviance
2 p(~1)c(~sp) 3 1543.523 0.000000 0.99162194 1537.504
1 p(~1)c(~1) 2 1553.070 9.547451 0.00837806 2358.903
Any tips on how to specify my formulas in RMark to replicate above MARK DM approach?