cov_mat: Extract various sigma matrices

Description Usage Arguments Value Examples

View source: R/plotextra.R

Description

Extract various sigma matrices

Usage

1
cov_mat(obj, which = c("xy", "zy", "zw"), use_population = TRUE)

Arguments

obj

A simrel object

which

A character string to specify which covariance matrix to extract, possible values are "xy", "zy" and "zw"

use_population

A boolean whether to use compute population values or to estimate from sample

Value

A matrix of covariances with column equals to the number of response and row equals to the number of predictors

Examples

1
2
3
4
set.seed(1983)
sobj <- multisimrel()
cov_mat(sobj, which = "xy", use_population = TRUE)
cov_mat(sobj, which = "xy", use_population = FALSE)

simrel documentation built on Sept. 17, 2021, 5:06 p.m.