approx_conditional {pcsstools}R 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


[Package pcsstools version 0.1.2 Index]