elrPredict | R Documentation |
Predicts conditional treatment effects based on a fitted EffectLiteR model.
elrPredict(obj, newdata = NULL, add.columns = "expected-outcomes")
obj |
Object of class |
newdata |
An optional data.frame, containing the same continuous and categorical covariates as used when fitting the EffectLiteR model in obj. Only covariates (and neither the dependent variable nor indicators for latent variables) should be included. |
add.columns |
Used to request additional columns. Can be one or several of c("covariates", "modmat", "expected-outcomes", "prop-covariates"). |
Object of class "data.frame"
.
m1 <- effectLite(y="dv", z=c("z1"), k=c("k1","kateg2"), x="x",
control="control", data=example01)
newdata <- data.frame(k1="male", kateg2="1", z1=2)
elrPredict(m1, newdata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.