Description Usage Arguments Value Examples
This function claculates the average outcome for cases assigned to their optimal and nonoptimal treatment. If bootstrapping was performed, confidence intervals based on the bootstrap. This is done by calculating the optimal treatment based on predicted PAI scores from each bootstrap replication, and using these to select cases and calculate the average (observed) outcome.
1 | observed_outcome(object)
|
object |
an mipai or mibootpai class object returned from
|
A data frame with summary statistics.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# builtin dataset with 32 cases
dat <- mtcars
dat$cyl <- factor(dat$cyl)
m <- mi_lm_pai_cvboot(~ cyl + am * (mpg + hp + drat + wt),
"disp", "am", list(dat, dat),
nboot = 50, holdouts = "10", cores = 2)
observed_outcome(m)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.