summary.mipai: Calculate Summary Statistics for PAI Model

Description Usage Arguments Value Examples

View source: R/methods.R

Description

Calculate Summary Statistics for PAI Model

Usage

1
2
## S3 method for class 'mipai'
summary(object, plot = TRUE, boot = TRUE, ...)

Arguments

object

an mipai or mibootpai class object returned from mi_lm_pai_cvboot.

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 TRUE if the object includes bootstrapped results.

Value

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).

Examples

 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)

JWiley/pai documentation built on May 7, 2019, 10:15 a.m.