Description Usage Arguments Details Value See Also Examples
View source: R/2DLTfunctions.r
Calculate coverage probabilities of \hat p using the delta method and assuming a log-normal error distribution.
1 | phatInterval(fit, type = "LOGNORM", interval = 0.95)
|
fit |
object resulting from a call of |
type |
|
interval |
the interval used to determine coverage probability |
In the call of fityx
in the fit
argument must have hessian=TRUE
a data frame of p phat, and CV[phat], interval, lower bound returned.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
ystart=4;w=1
hr=h2; b=log(c(0.75,1))
pi.x=pi.norm; logphi=c(0.5,log(0.2))
N=50 #true number of animals
#generate some observations
simDat=simXY(N=N,pi.x=pi.x,logphi=logphi,
hr=hr,b=b,w=w,ystart=ystart)
x=simDat$locs$x; y=simDat$locs$y
est.yx=fityx(y,x,b,hr,ystart,pi.x,logphi,w)
phatInterval(fit=est.yx,interval=0.95)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.