mean_est: Regression Function Estimates

Description Usage Arguments Value

Description

Use a SuperLearner to estimate the mean functions for the outcome and the treatment given covariates and the instrument

Usage

1
mean_est(y, a, z, cov)

Arguments

y

the outcome variable in your training set

a

the treatment variable in your training set

z

the instrument in your training set

cov

the covariates in your training set. Should be a data frame and it should not include any factors for now.

Value

gives you ymean and amean in the global envr. Note that I tried to return these as a list and it gave me something weird, but this works.


jackiemauro/CACE documentation built on May 5, 2019, 5:52 p.m.