Learn R Programming

powerHE (version 1.0.1)

formatHE: 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)

Value

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

Arguments

result

A list (return object of powerHE).

Examples

Run this code
# 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)

Run the code above in your browser using DataLab