regressogram {jmcm} | R Documentation |
Plot the sample regressograms based on the sample covariance matrix and superimpose the corresponding fitted curves to check the model fitting when the longitudinal dataset is balanced.
regressogram(object, time)
object |
a fitted joint mean covariance model of class "jmcmMod", i.e., typically the result of jmcm(). |
time |
a vector of obeservation time points |
cattleA <- cattle[cattle$group=='A', ]
fit.mcd <- jmcm(weight | id | I(ceiling(day/14 + 1)) ~ 1 | 1, data=cattleA,
triple = c(8, 3, 4), cov.method = 'mcd')
regressogram(fit.mcd, time = 1:11)