permtest | R Documentation |
Carry out a randomization test for a treatment effect using a fitted model object or user defined test statistic.
permtest(f, trtname, runit, strat = NULL, data, nperm = 1000,
ncores = 1, seed, quietly = T)
f |
fitted model object or function. If |
trtname |
character string specifying the name of randomized treatment
variable in |
runit |
character string specifying the name of unit of randomization
in |
strat |
an optional character string specifying the name of the variable
in |
data |
a data frame containing the variables necessary for the function
|
nperm |
number of permutations for randomization test |
ncores |
number of cores to use for computation. If ncores > 1, permtest runs in parallel. |
seed |
a numerical seed to use, passed to |
quietly |
logical; if TRUE (and if ncores == 1), status updates will be printed to Console otherwise, suppress updates. |
permci
for a randomization-based CI
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.