DeclareDesign (version 0.20.0)

reshape_diagnosis: Clean up a diagnosis object for printing

Description

If diagnosands are bootstrapped, se's are put in parentheses on a second line and rounded to digits.

Usage

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

Arguments

diagnosis

An object from diagnose_design, either a diagnosand dataframe or a list containing a diagnosand dataframe

digits

Number of digits.

select

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

Value

A formatted text table with bootstrapped standard errors in parentheses.

Examples

Run this code
# NOT RUN {
# library(DesignLibrary)
# diagnosis <- diagnose_design(two_arm_designer(), sims = 3)
# reshape_diagnosis(diagnosis)
# reshape_diagnosis(diagnosis, select = c("Bias", "Power"))
# }

Run the code above in your browser using DataCamp Workspace