plotCompareEffects: Draw plot comparing IPW and linear regression

View source: R/estimateEffectContinuous.R

plotCompareEffectsR Documentation

Draw plot comparing IPW and linear regression

Description

Draw plot comparing IPW and linear regression

Usage

plotCompareEffects(
  data,
  dep = "y",
  xvars = NULL,
  treatvar = NULL,
  weights = "IPW",
  seed = 1234,
  se = TRUE,
  print = TRUE
)

Arguments

data

A data.frame as a result of addIPW()

dep

Name of dependent variable

xvars

Names of covariates

treatvar

Name of treatment variable

weights

Name of weight variable

seed

A single integer

se

logical

print

logical

Examples

set.seed(1234)
mydata=addIPW(treat~x1+x2,data=simData2)
plotCompareEffects(mydata)

cardiomoon/webrPSM documentation built on Feb. 2, 2024, 3:55 a.m.