Learn R Programming

PoweR (version 1.0.7)

getnbparlaws: Retrieve the default number of parameters of some laws.

Description

Retrieve the default number of parameters of the distributions in the package.

Usage

getnbparlaws(law.indices = NULL)

Arguments

law.indices

vector of the indices of the distributions from which to retrieve the default number of parameters. If NULL, all the distributions will be considered.

Value

The default number of parameters for the laws specified in law.indices.

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

Examples

Run this code
# NOT RUN {
## Default numbers of parameters for all the distributions in the package:
getnbparlaws()
## The Gaussian distribution has two parameters:
getnbparlaws(2)
# }

Run the code above in your browser using DataLab