RMark Huggins with c=p+offset

I have a two-occasion (ch=11, 10, or 01) dataset and I am fitting a Huggins model. Let us say that I have two covariates X and Y, where (at least) Y is continuous. Suppressing the link function here, the model I want to fit looks like this:
p ~ X
c ~ p + Y
In other words, I would like the recapture probability to equal the original capture probability, offset by some adjustment that depends on Y. Maybe denoted p(X)c(p,Y).
My naive attempt is like this:
However, this appears to allow c to depend on X in a different manner (i.e., different parameters) than how p depends on X. (Right? The output gives different coefficients for X for p vs c). Does anyone know how to force the coefficient(s) for X to be equal in the p and c models while allowing for Y to participate only in the model for c?
Thanks.
Geof
p ~ X
c ~ p + Y
In other words, I would like the recapture probability to equal the original capture probability, offset by some adjustment that depends on Y. Maybe denoted p(X)c(p,Y).
My naive attempt is like this:
- Code: Select all
a=process.data(mydata,model="Huggins",groups=c("X"),allgroups=T)
b=make.design.data(a)
pform=list(formula=~X,share=F)
cform=list(formula=~X+Y)
mm=make.mark.model(data=a,ddl=b,parameters=list(p=pform,c=cform))
myfit=run.mark.model(mm,realvcv=T)
However, this appears to allow c to depend on X in a different manner (i.e., different parameters) than how p depends on X. (Right? The output gives different coefficients for X for p vs c). Does anyone know how to force the coefficient(s) for X to be equal in the p and c models while allowing for Y to participate only in the model for c?
Thanks.
Geof