Approximate the covariance of a set of predictors and a product of responses
approx_mult_prod
recursively estimates the covariances and means of a
set of responses. Estimates are approximated using all unique response
orderings and aggregated.
approx_mult_prod( means, covs, n, response, predictors, responses, verbose = FALSE )
means |
a vector of predictor and response means with all response means at the end of the vector. |
covs |
covariance matrix of all predictors and responses with column
and row order corresponding to the order of |
n |
sample size (an integer). |
response |
a string. Currently supports |
predictors, responses |
lists of objects of class |
verbose |
logical. |
A list containing the following elements:
means |
a vector of the (approximated) means of all predictors and the product of responses |
covs |
a matrix of (approximated) covariances between all predictors and the product of responses |
Wolf JM, Westra J, Tintle N (2021). “Using summary statistics to evaluate the genetic architecture of multiplicative combinations of initially analyzed phenotypes with a flexible choice of covariates.” bioRxiv. doi: 10.1101/2021.03.08.433979, https://www.biorxiv.org/content/10.1101/2021.03.08.433979v1.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.