powered by
This function is a helper to automatically generate an .R file populated with a skeleton of a typical test function compatible with flipr.
.R
flipr
use_stat(nsamples = 1, stat_name = "mystat")
Creates a dedicated .R file with a template of code for the function that implements the test statistic and saves it to the R/ folder of your package.
R/
An integer specifying the number of samples to be used. Defaults to 1L. Currently only works for one- or two-sample problems.
1L
A string specifying the name of the test statistic that is being implemented. Defaults to mystat.
mystat
if (FALSE) { use_stat() }
Run the code above in your browser using DataLab