mvrf: Multivariate Regressograms with Estimated Values

Description Usage Arguments Value References Examples

View source: R/mvrf.R

Description

mvrf returns multivariate regressograms for multivariate longitudinal data with j outcomes. It includes the estimated values for the multivariate regressograms.

Usage

1
mvrf(data,time,j,N,inno=FALSE,inverse=FALSE,loginno=TRUE,sigma.fitted,mcol="black",fcol="red",pch.plot=19,par1.r=2,par2.r=2,par1.d=2,par2.d=2,lwd.fit=2,lty.fit=1)

Arguments

data

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

time

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.

sigma.fitted

Tj X Tj, positive definite estimate of the covariance matix for multivariate longitudinal data with j outcomes.

mcol

color option for the average response. The default is black.

fcol

color option for the estimated average response. The default is red.

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.

lwd.fit

integer for line width of the estimated values. The default is 2.

lty.fit

integer for line width of the estimated values. The default is 2.

Value

Multivariate regressograms with fitted values 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 \& Dependence Patterns in Multivariate Longitudinal Data, submitted.

Examples

1
2
3
4
5
6
7
data(Tcells)
time <- c(0, 2, 4, 6, 8, 18, 24, 32, 48, 72)
j <- 4
N <- 44
data(Cov_est)
sigma.fitted <- Cov_est
MVRF <- mvrf(Tcells,time,j,N,inno=FALSE,inverse=FALSE,loginno=TRUE,as.matrix(Cov_est),mcol="black",fcol="red",pch.plot=19,par1.r=1,par2.r=1,par1.d=1,par2.d=1,lwd.fit=2,lty.fit=1)

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