pcl: Create a Proximal Causal Learning Object

Description Usage Arguments Value Examples

Description

Create a proximal causal learning object, usually used as a variable in a model function. Argument matching

Usage

1
pcl(outcome, trt, trt_pxy, out_pxy, covariates)

Arguments

outcome

the outcome variable

trt

the binary treatment variable

trt_pxy

the treatment-inducing proxies

out_pxy

the outcome-inducing proxies

covariates

the observed confounders

Value

pcl returns an object of class "pcl", which wraps the treatment, outcome, treatment inducing confounding proxies, outcome inducing confounding proxies and other covariates

Examples

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

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

Related to pcl in PCL...