formatHE {powerHE}R Documentation

Format powerHE Results

Description

This function formats the results outputted from the powerHE function. See below (pdf) or use ?powerHE (in R) to view its documentation.

Usage

formatHE(result)

Arguments

result

A list (return object of powerHE).

Value

A data frame containing the information from parameter 'result' with columns "Label" and "Value".

Examples

# Example TTE endpoint with formatting:

endpoints_input <- list(
  list(type = "TTE",
       hr = 0.8,
       er.b = 0.25,
       s = 12,
       tte.winning.direction = "GT")
)
results <- powerHE(endpoints_input,
               sample.size = 100,
               alpha = 0.05,
               rratio = 0.5,
               output = "ALL")
formatHE(results)

[Package powerHE version 1.0.1 Index]