Two-sided alpha, alternative, and confidence level
Two functions to find
vector of length 2 with nominal significance levels for each side, if not NULL overrides
confidence level, ignored if tsalpha is not NULL
character, alternative hypothesis, either 'less', 'greater' or 'two.sided'
tsalpha is a vector of length 2 giving the nominal error for each side
of confidence intervals. The function
getTSalpha creates a
tsalpha vector, allowing its creation either directly (non-null input for the argument
simply outputs that same argument), or through the
tsalpha is the nominal error on the lower side, so for example if
getTSalpha outputs the vector
c(0.05,0). In other words, if on rejection you want to conclude that θ>θ_0, then you want all the nominal
error to be on the lower side. Similarly
tsalpha is the nominal error on the upper side, and
conf.level=.95, then outputs the vector
You must supply either
tsalpha or both
getTSalpha returns a tsalpha vector (see details), and
getAlternative gives the character vector for the appropriate alternative.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.