View source: R/vcov.stepmented.R
vcov.stepmented | R Documentation |
Returns the variance-covariance matrix of the parameters (including breakpoints) of a fitted stepmented model object.
## S3 method for class 'stepmented'
vcov(object, k=NULL, ...)
object |
a fitted model object of class "stepmented", returned by any |
k |
The power of |
... |
additional arguments. |
The full covariance matrix is based on the smooth approximation
I(x>\psi)\approx \Phi((x-\psi)/n^{k})
via the sandwich formula using the empirical information matrix. \Phi(\cdot)
is the standard Normal cdf, and k
is the argument k
. When k=NULL
(default), it is computed via
k=-(0.6 + 0.3 \ \log(snr) - (|\hat\psi-0.5|/n)^{1/2})
where snr
is the signal-to-noise ratio corresponding to the estimated changepoint \hat\psi
(in the range (0,1)). The above formula comes from extensive simulation study under different scenarios.
The full matrix of the estimated covariances between the parameter estimates, including the breakpoints.
If the fit object
has been called by stepmented(.., var.psi=TRUE)
, then vcov.stepmented
will return object$vcov
, unless the power k
differs from -2/3
.
Vito Muggeo
stepmented
##see ?stepmented
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.