powered by
Extract various sigma matrices
cov_mat(obj, which = c("xy", "zy", "zw"), use_population = TRUE)
A simrel object
A character string to specify which covariance matrix to extract, possible values are "xy", "zy" and "zw"
A boolean whether to use compute population values or to estimate from sample
A matrix of covariances with column equals to the number of response and row equals to the number of predictors
# NOT RUN { set.seed(1983) sobj <- multisimrel() cov_mat(sobj, which = "xy", use_population = TRUE) cov_mat(sobj, which = "xy", use_population = FALSE) # }
Run the code above in your browser using DataLab