makemod2 | R Documentation |
Given a first stage model fit only on the control group, fit a second stage model with formula.
makemod2(mod1, treatment, data, center = TRUE)
mod1 |
First stage model fit |
treatment |
A vector of treatment statuses, should be all
|
data |
Data where variables in |
center |
Default |
resp - pred ~ pred | treatment == 1
A list
consisting of mod2
, the second stage
model, and pred
, the predicted values from mod1
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.