mvr: Multivariate Regressograms

Description Usage Arguments Value References Examples

View source: R/mvr.R

Description

mvr returns multivariate regressograms for multivariate longitudinal data with j outcomes.

Usage

1
mvr(data, time, j, N, inno=FALSE, inverse=FALSE, loginno=TRUE, plot=TRUE, pch.plot=19, par1.r=2, par2.r=2, par1.d=2, par2.d=2)

Arguments

data

a data frame (or matrix) with n rows for subjects and T columns for the repeated measurements.

time

a vector with T equally or unequally spaced time points.

j

a positive integer for the number of outcomes.

N

a positive integer for the number of subjects.

inno

a logical indicating if elements of innovation variance matrices be used innovariogram plot. The default is FALSE.

inverse

a logical indicating if elements of inverse innovation variance matrices be used innovariogram plot. The default is FALSE.

loginno

a logical indicating if elements of log innovation variance matrices be used innovariogram plot. The default is TRUE.

plot

logical indicating whether multivariate regressograms are returned or not. The default is TRUE.

pch.plot

a integer indicating type of symbols to be used in multivariate regressograms. The default is 19 for a solid dot.

par1.r

a positive integer indicating number of rows in multiple regressogram plots. The default is 2.

par2.r

a positive integer indicating number of columns in multiple regressogram plots. The default is 2.

par1.d

a positive integer indicating number of rows in multiple innovariogram plots. The default is 2.

par2.d

a positive integer indicating number of columns in multiple innovariogram plots. The default is 2.

Value

Multivariate regressograms are returned and following elements of modified Cholesky block decomposition:

References

Kohli, P. Garcia, T. and Pourahmadi, M. 2016 Modeling the Cholesky Factors of Covariance Matrices of Multivariate Longitudinal Data, Journal of Multivariate Analysis, 145, 87-100.

Kohli, P. Du, X. and Shen, H. 2020+ Multivariate Longitudinal Graphical Models (MLGM): An R Package for Visualizing and Modeling Mean and Dependence Patterns in Multivariate Longitudinal Data, submitted.

Examples

1
2
3
4
5
data(Tcells)
time <- c(0, 2, 4, 6, 8, 18, 24, 32, 48, 72)
j <- 4
n <- 44
MVR <- mvr(Tcells,time,j,n,inno=FALSE,inverse=FALSE,loginno=TRUE,plot=TRUE,pch.plot=19,par1.r = 2,par2.r = 2,par1.d=2,par2.d=2)

priyakohli5/MLGM documentation built on April 24, 2021, 4:22 p.m.