pcl {PCL}R Documentation

Create a Proximal Causal Learning Object

Description

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

Usage

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

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)

[Package PCL version 1.0 Index]