Description Usage Arguments Value Author(s) References Examples
Functions for the computation of the quantile values only for one test statistic at a time and also one n value.
1 2 3 |
n |
number of observations for each sample to be generated; length( |
law.index |
law index as given by |
stat.index |
stat index as given by |
probs |
If not |
M |
Number of Monte Carlo repetitions to use. |
law.pars |
|
stat.pars |
A vector of parameters.
If NULL, the default parameter values for the statistic specified by this |
model |
NOT YET IMPLEMENTED. If |
Rlaw |
The user can provide its own (random generating) R function using this parameter. In this case, 'law.index' should be set to 0. |
Rstat |
If 'stat.index' is set to 0, an R function that outputs a list with components 'statistic' (value of the test statistic), 'pvalue' (pvalue of the test; if not computable should be set to 0), 'decision' (1 if we reject the null, 0 otherwise), 'alter' (see above), 'stat.pars' (see above), 'pvalcomp' (1L if the pvalue can be computed, 0L otherwise), 'nbparstat' (length of stat.pars). |
center |
Logical. Should we center the data generated |
scale |
Logical. Should we center the data generated |
A list with M
statistic values and also some quantiles (with
levels 0.025,0.05,0.1,0.9,0.95,0.975), as well as the name of the law and the name of the test statistic used (just to be sure!).
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 Goodness-of-fit Tests in R. Journal of Statistical Software, 69(3), 1–42. doi:10.18637/jss.v069.i03
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.