Skip to contents

Basic methods for class SansSouciStruct

nHyp: get the number of hypotheses

nLeaves: get the number of leaves

label Get the label of a post hoc method

pValues: get p-values

Usage

# S3 method for SansSouciStruct
nHyp(object)

# S3 method for SansSouciStruct
nLeaves(object)

# S3 method for SansSouciStruct
label(object)

# S3 method for SansSouciStruct
pValues(object)

Arguments

object

An object of class SansSouci

Examples

s <- 100
q <- 7
m <- s*2^q

obj <- SansSouciDyadic(m, leaf_size = s, direction = "top-down")
nHyp(obj)
#> [1] 12800
nLeaves(obj)
#> [1] 128
mu <- gen.mu.leaves(m = m, K1 = 8, d = 0.9, grouped = TRUE, 
  setting = "const", barmu = 3, leaf_list = obj$input$leaves)
pvalues <- gen.p.values(m = m, mu = mu, rho = 0)

alpha <- 0.05
res <- fit(obj, alpha, pvalues, "DKWM")
label(res)
#> [1] "DKWM(tree)"
str(pValues(res))
#>  num [1:12800] 4.21e-05 3.03e-02 9.77e-02 3.03e-05 1.54e-05 ...