
deltamethod(fun, z, var = "x", params = NULL, max.order = 2)
deltavar(fun,meanval=NULL,vars,Sigma,verbose=FALSE)
deltavar()
, a vector of predicted variances; for
deltamethod()
a vector containing the observed value of the
function average, the function applied to the average, and a series of
delta-method approximationsdeltamethod()
is for computing delta-method approximations of
the mean of a function of data; deltavar()
is for estimating
variances of a function based on the mean values and
variance-covariance matrix of the parameters. If Sigma
is a
vector, the parameters are assumed to be independently estimated.deltamethod(a*x/(b+x),runif(50),params=list(a=1,b=1),max.order=9)
deltavar(scale*gamma(1+1/shape),meanval=c(scale=0.8,shape=12),
Sigma=matrix(c(0.015,0.125,0.125,8.97),nrow=2))
Run the code above in your browser using DataLab