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

approx_conditional

Approximate the mean of Y conditional on X


Description

Approximate the mean of Y conditional on X

Usage

approx_conditional(means, covs, response, n)

Arguments

means

Vector of the mean of X and the mean of Y

covs

Matrix of covariances for X and Y

response

Character. If "binary" truncates means to interval [0, 1]. If "continuous" does not restrict.

n

Sample size

Value

A list of length 2 consisting of 2 functions that give the estimated conditional mean and conditional variance of Y as a function of X


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.