vcov.cusp | R Documentation |
Returns an estimate of the variance-covariance matrix of the main parameters of a fitted cusp model object.
## S3 method for class 'cusp'
vcov(object, ...)
## S3 method for class 'cusp'
confint(object, parm, level = 0.95, ...)
object |
a fitted cusp model object. |
parm |
a specification of which parameters are to be given confidence intervals, either a vector of numbers or a vector of names. If missing, all parameters are considered. |
level |
the confidence level required. |
... |
additional arguments for method functions. |
The variance-covariance matrix is estimated by the inverse of the Hessian matrix of the log-likelihood at the maximum likelihood estimate (vcov
).
Normal theory confidence intervals are computed for all parameters in the cusp model object using vcov
to obtain the standard errors (confint
).
The variance-covariance matrix (vcov
).
A matrix (or vector) with columns giving lower and upper confidence limits for each parameter. These will be labeled as (1-level)/2 and 1 - (1-level)/2 in
Raoul Grasman
Seber, Wild (2005) Nonlinear regression. New York: Wiley
vcov
, cusp
set.seed(123)
x1 = runif(150)
x2 = runif(150)
z = Vectorize(rcusp)(1, 4*x1-2, 4*x2-1)
data <- data.frame(x1, x2, z)
fit <- cusp(y ~ z, alpha ~ x1+x2, beta ~ x1+x2, data)
vcov(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.