| pbph | R Documentation |
Performs Peters-Belson with Prognostic Heterogeneity on the data.
pbph(mod1, treatment, data, center = TRUE, cluster = NULL)
mod1 |
First stage fitted model. |
treatment |
A 0/1 variable in |
data |
Data where variables in |
center |
Default |
cluster |
A variable in |
A pbph object which extends lm. Can be
passed to summary or confint.
The return contains an additional object, pbph, which lm
doesn't include. pbph contains mod1, a copy of the first
stage model, and data, which includes the data augmented
with treatment and predicted.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.