approx_conditional: Approximate the mean of Y conditional on X

approx_conditionalR Documentation

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


jackmwolf/pcsstools documentation built on July 7, 2024, 7:46 p.m.