Description Usage Arguments Value Examples
Calculate Summary Statistics for PAI Model
1 2 |
object |
an mipai or mibootpai class object returned from
|
plot |
logical whether to plot a histogram of the PAI scores. |
dots |
Additional arguments, not currently used. a label for the results. |
boot |
logical whether to use bootstrapped results. Defaults to
|
A list of data frames with an element of summary statistics for the PAI (PAI) and observed results for patients assigned to their optimal and nonoptimal treatment (ObservedOutcome) and residuals (Residuals), and for the histogram (Graph).
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)
summary(m)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.