File: MuTossObject.R

package info (click to toggle)
r-cran-mutoss 0.1-13-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,560 kB
  • sloc: sh: 13; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 1,914 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
setClass("ErrorControl",
		representation  = representation(
				type           = "character", # Type of error rate controlled for (FWER, FWER.weak, FDR, FDX, gFWER, perComparison (?))
				alpha          = "numeric",   # Error rate of the procedure
				k              = "numeric",   # Additional parameter for  generalized FWE control
				q              = "numeric"    # Additional paramter for FDX control
		)
)

##TODO: add slots for "model": formula, link, family
##TODO: write some header, it is the main object that comes out after four weeks of hard work!!

setClass("Mutoss",
		representation    = representation(
				data			= "ANY",            # Raw data used in model
				model			= "ANY",            # link function,error family and design 
				description     = "character",
				statistic       = "numeric",      	# For Z, T or F statistics (maybe different slots?)
				hypotheses		= "ANY",
				hypNames        = "character",    	# Identifiers for the hypotheses tested
				criticalValues	= "numeric",	    # Procedure-specific critical values
				pValues         = "numeric",      	# Raw p-values. Either imported or calculated with data and model 
				adjPValues      = "numeric",      	# Procedure-specific adjusted p-values
				errorControl    = "ErrorControl", 	# Details of the multiplicity control procedure used.				  
				rejected        = "logical",      	# Logical vector of the output of a procedure at a given error rate
				qValues         = "numeric",      	# Storey's estimates of the supremum of the pFDR
				locFDR          = "numeric",      	# Efron's local fdr estimates (by which method?)
				pi0             = "numeric",      	# Estimate of the proportion of null hypotheses (by which method?)
				confIntervals   = "matrix",       	# Confidence intervals for selected parameters (of which kind? selected how?)
				commandHistory  = "character"
		)
)