Description Usage Arguments Author(s) References See Also Examples
Transform the power values given by function powcomp.fast
into a LaTeX code for creating the table of power simulations.
1 2 |
x |
power values given by function |
digits |
control the number of decimal places. It can take values from 0 to 3. |
latex.output |
logical. If |
template |
integer, template to use for the (LaTeX) printing of
values. Only |
... |
further arguments passed to or from other methods. |
P. Lafaye de Micheaux, V. A. Tran
Pierre Lafaye de Micheaux, Viet Anh Tran (2016). PoweR: A Reproducible Research Tool to Ease Monte Carlo Power Simulation Studies for 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 print.critvalues
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Regenerate Table 6 from Puig (2000) (page 424)
# Change M = 50000 for more accurate results
M <- 10
law.index <- 1
vectn <- c(10,15,20,35,50,75,100)
level <- c(0.05)
stat.indices <- c(43,44,42,45,46)
law.indices <- c(2,3,4)
alter <- list(stat43 = 3,stat44 = 3,stat42 = 3,stat45 = 3,stat46 = 3)
critval <- many.crit(law.index,stat.indices,M,vectn,level,alter,law.pars = NULL,parstat = NULL)
table6 <- powcomp.fast(law.indices,stat.indices,vectn,M,level,critval = critval,alter,
parlaws = NULL,parstats = NULL,nbclus = 1)
print.power(table6,digits=0,latex.output = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.