Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

approx_response_cov_recursive

Approximate the covariance of one response with an arbitrary product of responses.


Description

Approximate the covariance of one response with an arbitrary product of responses.

Usage

approx_response_cov_recursive(
  ids,
  r_covs,
  r_means,
  n,
  responses,
  response,
  verbose = FALSE
)

Arguments

ids

Column ids of responses to use. First is taken alone while 2nd to last are to be multiplied

r_covs

Response covariance matrix

r_means

Response means (vector)

n

Sample size

responses

List of lists with elements of class predictor

response

Character, Either "binary" or "continuous"

verbose

logical

Value

A vector with the approximated covariance, and approximated mean and variance of the product


pcsstools

Tools for Regression Using Pre-Computed Summary Statistics

v0.1.1
GPL (>= 3)
Authors
Jack Wolf [aut, cre, cph] (<https://orcid.org/0000-0002-8919-8740>), R Core Team and contributors worldwide [cph, aut] (Author and copyright holder of modified 'stats' fragments)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.