Learn R Programming

jmcm (version 0.2.4)

bootcurve: Plot Fitted Curves and Corresponding Confidence Interval using bootstrapping method

Description

Plot fitted curves and corresponding 95% confidence interval using bootstrapping method.

Usage

bootcurve(object, nboot)

Arguments

object

a fitted joint mean covariance model of class "jmcmMod", i.e., typically the result of jmcm().

nboot

number of the bootstrap replications.

Examples

Run this code
if (FALSE) {
# It may take hours for large bootstrap replications
fit.mcd <- jmcm(I(sqrt(cd4)) | id | time ~ 1 | 1, data=aids,
  triple = c(8, 1, 3), cov.method = 'mcd', control = jmcmControl(trace=T))
bootcurve(fit.mcd, nboot = 1000)
}

Run the code above in your browser using DataLab