I’m looking for advice on where to focus troubleshooting (which so far has not been fruitful) when receiving this error message in RMark. I get the message when trying unsuccessfully to run RDHuggins models with mark() or mark.wrapper():
- Code: Select all
Error in if (link != parameters[[i]]$link) link = "Parm-Specific" :
argument is of length zero
Error in mark(pema.proc, pema.ddl, model.parameters = list(S = S.dot, :
Misspecification of model or internal error in code
I am modeling 2 years of small mammal mark-recap data with RDHuggins. I have 16 grids that were trapped for 2 primary periods with 4 occasions in each period. The primary periods are within a year. In RMark terms: 0001000 in 2013 and 2014.
Snippet of my data:
- Code: Select all
ch freq season grid block type cover male ad_ave
10000000 1 2013 B1_NS B1 N grass 0 1
01100111 1 2013 B2_IE B2 I shrub 1 1
01000000 1 2013 B2_IE B2 I shrub 0 0
00010000 1 2014 B4_IN B4 I grass 0 1
10111111 1 2014 B2_IE B2 I shrub 1 1
01011000 1 2014 B4_NN B4 N grass 1 1
I get the above error with every model I’ve tried, but here’s one attempt:
- Code: Select all
# GammaPrime: not estimable with only 2 primary periods.
GammaDoublePrime.dot.fixed <- list(formula = ~1, fixed = 0)
S.yr <- list(formula = ~season)
p.yr <- list(formula = ~season, share=TRUE)
c.yr <- list(formula = ~season)
mark(pema.proc, pema.ddl, model.parameters = list(GammaDoublePrime = GammaDoublePrime.dot.fixed, S = S.yr, p = p.yr, c = c.yr))
I greatly appreciate any advice, and apologize in advance if I've overlooked a simple syntax error.
Thanks!
Joe