I'm new to RMark and to ensure I understand what I'm doing I'm attempting to fully replicate my program MARK results in RMark. I’m using a Huggins closed capture approach so am playing around with differing parametrisations of p (initial capture) and c (recapture) being shared or not between models. The results in MARK were created with a sin link, and as the default for RMark is a logit link my understanding is I have to drop the intercept in the model formula in order to specify the use of an identity matrix e.g.
- Code: Select all
p.group.equals.c.group = list(formula = ~-1 + group, share = TRUE, link="sin")
- Code: Select all
p.group.diff.c.group = list(p=list(formula=~ -1 + group, link = "sin"),
c=list(formula=~ -1 + group, link = "sin"))
Okay so far so good – with all these and other simple models I get the same answer between MARK and RMark. Where I stumble is with a fully time varying model…
- Code: Select all
p.time.group.equals.c.time.group = list(formula = ~ -1 + time * group, share = TRUE, link = "sin")
which returns the error:
Cannot use sin link with non-identity design matrix. Error in mark(model.parameters = model.parameters, initial = initial, : Misspecification of model or internal error in code
What might I be doing wrong in this last example?