Learn R Programming

PoweR (version 1.0.7)

getindex: Get indices of laws and statistics functions.

Description

Print two correspondence tables between indices and random generators functions or test statistics functions programmed in C in this package. The first table gives indices/laws and the second one gives indices/statistics. These indices can be used in the functions powcomp.easy, powcomp.fast, compquant, gensample, statcompute, checklaw.

Usage

getindex(law.indices = NULL, stat.indices = NULL)

Arguments

law.indices

if not NULL, select only the laws corresponding to this vector of indices.

stat.indices

if not NULL, select only the stats corresponding to this vector of indices.

Value

A list with two matrices. The first one gives the correspondence between the indices and the laws (with also the number of parameters for each law as well as the default values). The second one gives the correspondence between the indices and the test statistics. Note that you can use the law.indices or stat.indices parameters of this function to obtain only some part of these tables of correspondence.

References

Pierre Lafaye de Micheaux, Viet Anh Tran (2016). PoweR: A Reproducible Research Tool to Ease Monte Carlo Power Simulation 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 getnbparlaws, getnbparstats, stat.cstr,law.cstr.

Examples

Run this code
# NOT RUN {
getindex(1,c(4,3))
# }

Run the code above in your browser using DataLab