multHypothesis {ResearchMethods} | R Documentation |
Using a tcltk Graphical User Interface (GUI), this function demonstrates the pontential dangers involved in testing multiple hypotheses with dependent data.
multHypothesis(GUI=TRUE,alpha=0.05,hyp=1)
GUI |
A boolean value that lets the user turn the control window off, to allow the function to be embeded in other code. |
alpha |
The initial significance level. |
hyp |
The initial number of hypotheses being tested. |
The function creates one or two windows. The optional GUI window allows the user to set the significance level, alpha, and to change in real time the number of hypotheses being tested, k. The other window is a plot of the potential chance of a false rejection of the null hypothesis, with indicators marked in red of the exact probability at the current number of tests.
No tangible value is returned, though the enviroment MHenv
is left so the user can access the variables.
Mohamed Abdolell <mohamed.abdolell@dal.ca> and Sam Stewart <samstewart11@gmail.com>
# The simplest way to run the function, with the GUI active multHypothesis() #running it without a GUI multHypothesis(GUI=FALSE) #Starting with initial values multHypothesis(alpha=0.1,hyp=10)