bootcovjmcm: Estimate the covariance of estimated parameters using a...

Description Usage Arguments Value References Examples

View source: R/bootcovjmcm.R

Description

bootcovjmcm gives the estimation of the covariance of estimated parameters returned by jmcm by using a bootstrap based method.

Usage

1
bootcovjmcm(object, mydata, numboot)

Arguments

object

a fitted joint mean-covariance model of class "jmcmMod", returned by the function jmcm.

mydata

the data frame used in fitting the model.

numboot

the number of the bootstrap replications

Value

an estimated covariance matrix of the estimated parameters.

References

[1] Liu, R.Y. (1988) "Bootstrap Procedure under Some Non-i.i.d. Models." Annals of Statistics, 16, 1696-1708.

Examples

1
2
3
4
5
6
7
8
9
cattleA <- cattle[cattle$group=='A', ]
fit.mcd <- jmcm(weight|id|I(ceiling(day/14+1))~1|1,
               data = cattleA,
               cov.method = "mcd",
               triple = c(1,1,1))
bootcovjmcm(fit.mcd, cattleA, 5)
## Larger number of replications is needed to achieve accuracy,
## however it may take hours.
bootcovjmcm(fit.mcd, cattleA, 500)

varjmcm documentation built on April 14, 2020, 6:58 p.m.