pilotData {SSPA} | R Documentation |
The function pilotData
initializes a PilotData
-object. Information of the pilot data and the null distribution is stored e.g. name of pilot experiment, test statistics and number of samples used.
pilotData(name = "Unknown Experiment", testStatistics = double(1), sampleSizeA = double(1), sampleSizeB = double(1), dof = double(0), nullDist = c("normal", "student"))
name |
character string giving the experiment name |
testStatistics |
vector of type numeric containing the set of test statistics |
sampleSizeA |
the samplesize of group A |
sampleSizeB |
the samplesize of group B |
dof |
degree of freedom for a Student t distribution |
nullDist |
distribution under the null hypothesis either one of:
|
Based on the given null distribution two-sided p-values are calculated from the test statistics. Some additional checks on the data are performed. Once an object of PilotData
is created the sampleSize
-function can be called.
object of class PilotData
Maarten van Iterson
hist
, plot
and PilotData
use class?PilotData
library(multtest) data(golub) teststat <- mt.teststat(golub, golub.cl) table(golub.cl) pd <- pilotData(name="golub", testStatistics=teststat, sampleSizeA=11, sampleSizeB=27)