Per-representation p-values, covariance, and condition number
Source:R/components.R
riposte_components.RdPer-representation p-values, covariance, and condition number
Usage
riposte_components(
formula,
data,
blocks = NULL,
clusters = NULL,
representations = riposte_reps_default(),
nresample = 1999L,
cluster_agg = mean,
seed = NULL,
alternative = c("two.sided", "greater", "less"),
...
)Arguments
- formula
Y ~ treatmentfor complete randomization, orY ~ treatment | blockfor randomization within blocks (or useblocks).- data
a data.frame/data.table.
- blocks
optional block specification (see
riposte_test()).- clusters
optional cluster specification (see
riposte_test()); the design is collapsed to the cluster level when given.- representations
a named list of representation functions;
riposte_reps_default()by default.- nresample
number of re-randomizations for the marginal p-values.
- cluster_agg
how to aggregate the outcome within a cluster; the cluster mean by default.
- seed
optional integer seed (L'Ecuyer-CMRG) for reproducibility.
- alternative
"two.sided"(default),"greater", or"less": the direction of each representation's mid-p value; seeriposte_test().- ...
reserved.