cov_mat {simrel}R Documentation

Extract various sigma matrices

Description

Extract various sigma matrices

Usage

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

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

[Package simrel version 2.1.0 Index]