Hi all,
I’m working on back-transforming parameter estimates from a multi-session oSCR model and am having trouble using get.real() for detection probability.
My top model is:
model8 <- oSCR.fit(model = list(D ~ session, p0 ~ b * sex, sig ~ sex), scrFrame = sf, ssDF = ss, plotit = FALSE, trimS = 8)The estimated parameter names are:
model8$outStats$parameters [1] "p0.(Intercept)" "p0.male" "p.behav.f" [4] "p.behav.m" "sig.(Intercept)" "sig.sexmale" [7] "d0.(Intercept)" "d.beta.session2" "psi.constant"I am trying to obtain back-transformed detection estimates and 95% CIs for females before first capture, females after first capture, males before first capture, and males after first capture.
The density get.real worked below:
model8.dens <- get.real(model=model8, type="dens", d.factor=4)For detection, I tried creating a prediction data frame following the get.real() examples:
model8.det.df <- data.frame( sex=factor(c(0,0,1,1), levels=c(0,1)), b=c(0,1,0,1), p.behav=c(0,1,0,1) ) model8.det <- get.real(model=model8, type="det", newdata=model8.det.df)but I receive:
Error in eval(g., envir) : object 'p.behav' not foundI also tried using only sex and b in newdata and received the same error.
It looks like the fitted b * sex model is parameterized with separate p.behav.f and p.behav.m parameters, whereas get.real() appears to be looking for p.behav.
Is there a recommended newdata structure or parameter-renaming approach for using get.real() with a p0 ~ b * sex model? I am also trying to obtain the female- and male-specific sigma estimates from sig ~ sex.
Thanks!
Hi all,
I was able to manually back-transform the parameter estimates from my oSCR model rather than using get.real(). However, I’m wondering if there is a recommended approach for obtaining the corresponding 95% confidence intervals when get.real() is not working.
My model includes p0 ~ b * sex, so some of the real-scale estimates require combining multiple coefficients before back-transforming (for example, the male post-capture detection estimate uses the detection intercept + male effect + male behavioral effect).
Is there a standard/recommended way in oSCR to calculate the confidence intervals for these manually back-transformed combinations of coefficients?
Thanks!
Madi