...I also am trying to estimate density by habitat type (n = 3) and ran the following model: D~habtype g0~time + h2 sigma~time + h2 pmix~h2.
The output shows only the density calculation for habitat #3
The default in predict.secr is to present 'real' parameter estimates for one level only. To get others you need to specify the covariate levels. In your case something like this should work
- Code: Select all
predict(fittedmodel, newdata = data.frame(habtype=factor(1:3)))
I'm assuming that you have saved the result of secr.fit as fittedmodel, that your habtype covariate is a factor with levels 1,2,3, and that 'time' is a type for 't' rather than another covariate (another covariate would have to be included in newdata)
and my beta estimate for habitat type #2 has a high SE ( mean = -9.9878716, SE = 200.5290845). Should I suspect a problem?
Yes, the wild SE is a worry and probably means the model is not fully identifiable. I haven't much experience of fitting models that combine finite mixtures (h2) with explicit accounting for other sources of variation, and don't have all the facts here, so I am wary of providing specific advice. I suppose I would try a simpler model and see if it gave essentially the same density or N estimates (we're not chained to the model with smallest AIC).
Murray