getNameAlternative {safestats}R Documentation

Gets the Label of the Alternative Hypothesis

Description

Helper function that outputs the alternative hypothesis of the analysis.

Usage

getNameAlternative(
  alternative = c("twoSided", "greater", "less"),
  testType,
  h0 = 0
)

Arguments

alternative

A character string. "twoSided", "greater", "less".

testType

A character string either "oneSample", "paired", "twoSample", "gLogrank", or "eLogrank".

h0

the value of the null hypothesis

Value

Returns a character string with the name of the analysis.


[Package safestats version 0.8.7 Index]