pclfit: Fit a Proximal Causal Learning Model

Description Usage Arguments Value Examples

Description

Fit a proximal causal learning model

Usage

1
pclfit(pcl_object, method = "POR")

Arguments

pcl_object

an pcl object

method

method used to fit

Value

returns the average causal effect

Examples

1
2
3
4
5
6
7
8
n <- 100
outcome <- rnorm(n, 0, 1)
trt <- rbinom(n, 1, 0.5)
trt_pxy <- matrix(rnorm(n, 0, 1), ncol = 1)
out_pxy <- matrix(rnorm(n, 0, 1), ncol = 1)
covariates <- matrix(rnorm(n, 0, 1), ncol = 1)
pcl_object <- pcl(outcome, trt, trt_pxy, out_pxy, covariates)
fit <- pclfit(pcl_object)

PCL documentation built on April 10, 2021, 9:07 a.m.

Related to pclfit in PCL...