formatHE: Format powerHE Results

View source: R/powerHE.R

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

powerHE documentation built on April 12, 2025, 1:59 a.m.

Related to formatHE in powerHE...