Description Usage Arguments Value References Examples
bootcovjmcm
gives the estimation of the covariance of estimated parameters returned by jmcm
by using a bootstrap based method.
1 | bootcovjmcm(object, mydata, numboot)
|
object |
a fitted joint mean-covariance model of class "jmcmMod", returned by the function |
mydata |
the data frame used in fitting the model. |
numboot |
the number of the bootstrap replications |
an estimated covariance matrix of the estimated parameters.
[1] Liu, R.Y. (1988) "Bootstrap Procedure under Some Non-i.i.d. Models." Annals of Statistics, 16, 1696-1708.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.