View source: R/estimateEffectContinuous.R
plotCompareEffects | R Documentation |
Draw plot comparing IPW and linear regression
plotCompareEffects(
data,
dep = "y",
xvars = NULL,
treatvar = NULL,
weights = "IPW",
seed = 1234,
se = TRUE,
print = TRUE
)
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 |
set.seed(1234)
mydata=addIPW(treat~x1+x2,data=simData2)
plotCompareEffects(mydata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.