regressogram: Plot Sample Regressograms and Fitted Curves

Description Usage Arguments Examples

View source: R/utilities.R

Description

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.

Usage

1
regressogram(object, time)

Arguments

object

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

time

a vector of obeservation time points

Examples

1
2
3
4
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)

jmcm documentation built on Jan. 16, 2021, 5:32 p.m.

Related to regressogram in jmcm...