Learn R Programming

PoweR (version 1.0.7)

print.critvalues: Latex table for critical values

Description

Transform the critical values given by function many.crit into a LaTeX code for creating the table of critical values.

Usage

# S3 method for critvalues
print(x, digits = 3, latex.output =  FALSE, template = 1, ...)

Arguments

x

critical values given by function many.crit.

digits

integer indicating the number of decimal places to be used.

latex.output

logical. If TRUE, we output LaTeX code for the table of critical values. If FALSE, we output this table in the R Console.

template

integer, template to use for the (LaTeX) printing of values. Only template = 1 is defined for the moment.

...

further arguments passed to or from other methods.

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

Puig, P. and Stephens, M. A. (2000), Tests of fit for the Laplace distribution, with applications, Technometrics, 42, 417--424.

See Also

See print.power.

Examples

Run this code
# NOT RUN {
## Regenerate Table 1 from Puig (2000) (page 419)
# Take M = 10000 for accurate results
M <- 10
law.index <- 1
vectn <- c(10,15,20,35,50,75,100,1000)
level <- c(0.50,0.25,0.10,0.05,0.025,0.01) 
table1 <- many.crit(law.index,stat.indices = c(43),M,vectn,level,
                    alter = list(stat43=3),law.pars = NULL,parstat = NULL)
print.critvalues(table1,digits=3,latex.output=TRUE)
# }

Run the code above in your browser using DataLab