Combining share and fixed?

I'm trying to apply the robust design to a dataset that includes some radio-collared animals, for which we want to set p and c to 1. I'm interested in including models where p & c are the same for non-collared animals (such as p.session=list(formula=~session,share=T)) or where they always differ by the same amount (such as p.c.session=list(formula=~c+session,share=T)). When I try to combine these models and fixing p & c, it either doesn't fix c or gives me an error message. I first tried fixing p using:
which does not fix any c values. I then tried deleting rows from the p and/or c design data, which gave me the error "One or more formulae are invalid because the design matrix has all zero rows for the following nonfixed parameters."
It now looks like models where p & c vary independently work best for this dataset, but I'm still curious: is there a way to do this?
Thanks,
Jeff
- Code: Select all
p_collared.Y=as.numeric(row.names(ShisRDall.ddl$p[ShisRDall.ddl$p$collared=='Y', ]))
p.c.session=list(formula=~session+c, share=T, fixed=list(index=p_collared.Y,value=1))
which does not fix any c values. I then tried deleting rows from the p and/or c design data, which gave me the error "One or more formulae are invalid because the design matrix has all zero rows for the following nonfixed parameters."
It now looks like models where p & c vary independently work best for this dataset, but I'm still curious: is there a way to do this?
Thanks,
Jeff