Learn R Programming

PoweR (version 1.0.7)

stat.cstr: 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)

Arguments

stat.index

a single integer value corresponding to the index of a test statistic as given by function getindex.

stat.pars

vector of the values of the parameters of the test specified in stat.index. If NULL, the default values are used.

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.

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

Run this code
# NOT RUN {
stat.cstr(80)
# }

Run the code above in your browser using DataLab