| vcov.segmented {segmented} | R Documentation |
Returns the variance-covariance matrix of the parameters (including breakpoints) of a fitted segmented model object.
## S3 method for class 'segmented' vcov(object, var.diff = FALSE, ...)
object |
a fitted model object of class "segmented", returned by any |
var.diff |
logical. If |
... |
additional arguments. |
The returned covariance matrix is based on an approximation of the nonlinear segmented term. Therefore covariances corresponding to breakpoints are reliable only in large samples and/or clear cut segmented relationships.
The full matrix of the estimated covariances between the parameter estimates, including the breakpoints.
var.diff=TRUE works when there is a single segmented variable.
Vito M. R. Muggeo, vito.muggeo@unipa.it
##continues example from summary.segmented() # vcov(oseg) # vcov(oseg,var.diff=TRUE)