stat.cstr {PoweR} | R Documentation |
Gives information about a test statistic.
Description
To obtain the name of a test as well as its default number of parameters and default parameter values.
Usage
stat.cstr(stat.index, stat.pars = NULL, n = 0)
Arguments
stat.index |
a single integer value corresponding to the index of a test statistic as
given by function |
stat.pars |
vector of the values of the parameters of the test specified in
|
n |
integer giving the sample size (useful since some default values of the parameters might depend on the sample size). |
Value
name |
name of the test. |
nbparams |
default number of parameters of the test. |
law.pars |
values of the parameters |
alter |
0: two.sided=bilateral, 1: less=unilateral, 2: greater=unilateral, 3: bilateral test that rejects H0 only for large values of the test statistic, 4: bilateral test that rejects H0 only for small values of the test statistic. |
Author(s)
P. Lafaye de Micheaux, V. A. Tran
References
Pierre Lafaye de Micheaux, Viet Anh Tran (2016). PoweR: A Reproducible Research Tool to Ease Monte Carlo Power Simulation Studies for Studies for Goodness-of-fit Tests in R. Journal of Statistical Software, 69(3), 1–42. doi:10.18637/jss.v069.i03
See Also
See law.cstr
, getindex
,
getnbparlaws
, getnbparstats
.
Examples
stat.cstr(80)