Learn R Programming

PoweR (version 1.0.7)

create.alter: Create a list giving the type of test statistics.

Description

Create a list giving the type of each test statistic for a given vector of indices of these test statistics.

Usage

create.alter(stat.indices = c(42, 51, 61), values.alter = NULL)

Arguments

stat.indices

vector of indices of test statistics, as given by function getindex.

values.alter

vector of the type of each test statistic in stat.indices. If NULL, the default value will be returned.

Value

A named list. Each component of the list has the name of the corresponding index in stat.indices (e.g. stat\(xxx\)) and has the value (in 0,1,2,3,4) of the type of test (see Details above).

Details

See Section 3.3 in Lafaye de Micheaux, P. and Tran, V. A. (2014).

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 getindex.

Examples

Run this code
# NOT RUN {
create.alter()
# }

Run the code above in your browser using DataLab