print.critvalues {PoweR} | R Documentation |
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 class 'critvalues'
print(x, digits = 3, latex.output = FALSE, template = 1, ...)
Arguments
x |
critical values given by function |
digits |
integer indicating the number of decimal places to be used. |
latex.output |
logical. If |
template |
integer, template to use for the (LaTeX) printing of
values. Only |
... |
further arguments passed to or from other methods. |
Value
No return value. The function prints a formatted representation of critical values, optionally in 'LaTeX' format. The object printed is of class "critvaluesX"
, where X
is the template number.
Author(s)
P. Lafaye de Micheaux, V. A. Tran
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
## 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)