Take a diagnosis object and returns a pretty output table. If diagnosands are bootstrapped, se's are put in parentheses on a second line and rounded to digits.

reshape_diagnosis(diagnosis, digits = 2, select = NULL, exclude = NULL)

Arguments

diagnosis

A diagnosis object generated by diagnose_design.

digits

Number of digits.

select

List of columns to include in output. Defaults to all.

exclude

Set of columns to exclude from output. Defaults to none.

Value

A formatted text table with bootstrapped standard errors in parentheses.

Examples

# library(DesignLibrary) # diagnosis <- diagnose_design(two_arm_designer(), sims = 3) # reshape_diagnosis(diagnosis) # reshape_diagnosis(diagnosis, select = c("Bias", "Power"))