View source: R/confint.segmented.lme.r
| confint.segmented.lme | R Documentation |
Computes Wald-based confidence intervals for all regression parameters, including the the breakpoint, in a fitted ‘segmented mixed’ model.
## S3 method for class 'segmented.lme'
confint(object, parm, level = 0.95, obj.boot, ...)
object |
A fit object returned by |
parm |
A vector of numbers indicating which parameters should be considered. If missing all parameters. |
level |
The confidence level. |
obj.boot |
The possible list including the bootstrap distributions of the regression coefficients. Such list is returned by |
... |
if |
If obj.boot is provided or ... includes the argument B>0, confidence intervals are computed by exploiting the bootstrap
distributions.
A matrix (or a list of matrices if bootstrap ci are requested) including the confidence intervals for the model parameters.
All the functions for segmented mixed models (*.segmented.lme) are still at an experimental stage
The CI's are computed using the Wald statistic assumed to have a Normal distributed. This is reliable for the simple linear parameters and for the other parameters (coefficients of terms G) only if the segmented relationship is clear cut with changepoint in the middle of the covariate range.
Vito Muggeo
vcov.segmented.lme
## Not run:
confint(os) #asymptotic CI
confint(os, B=50) #boot CIs
#it is possible to obtain the boot distribution beforehand
ob <-vcov(os, B=50, ret.b=TRUE)
confint(os, obj.boot=ob) #boot CI
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.