pilotData {SSPA}R Documentation

Creates an object of class "PilotData"

Description

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.

Usage

pilotData(name = "Unknown Experiment", testStatistics = double(1), sampleSizeA = double(1), sampleSizeB = double(1), dof = double(0),     nullDist = c("normal", "student"))

Arguments

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:
  • "normal",
  • "student", (only in case of method="Ruppert" see sampleSize)

Details

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.

Value

object of class PilotData

Author(s)

Maarten van Iterson

See Also

hist, plot and PilotData use class?PilotData

Examples

library(multtest)
data(golub)
teststat <- mt.teststat(golub, golub.cl)
table(golub.cl)
pd <- pilotData(name="golub", testStatistics=teststat, sampleSizeA=11, sampleSizeB=27)

[Package SSPA version 1.0.0 Index]