Learn R Programming

PoweR (version 1.1.4)

law.cstr: Gives information about a given law.

Description

To obtain the name of a law as well as its default number of parameters and default parameter values.

Usage

law.cstr(law.index, law.pars = NULL)

Value

name

name of the distribution with its parameters and the values they take.

nbparams

default number of parameters of the law.

law.pars

values of the parameters.

Arguments

law.index

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

law.pars

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

Author

P. Lafaye de Micheaux, V. A. Tran

Details

This function can be useful to construct a title for a graph for example.

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 stat.cstr, getindex, getnbparlaws, getnbparstats.

Examples

Run this code
law.cstr(2)

Run the code above in your browser using DataLab