Learn R Programming

PoweR (version 1.1.4)

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, n = 0)

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.

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.

n

integer giving the sample size (useful since some default values of the parameters might depend on the sample size).

Author

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

Run this code
stat.cstr(80)

Run the code above in your browser using DataLab