powered by
This function runs the case studies included in the package and compares the power of a new test to those included.
run.studies( studies = 1:40, types = 1:5, data_type = "cont", TS, TSextra, With.p.value = FALSE, n = 500, alpha = 0.05, B = 1000, SuppressMessages = TRUE )
A matrix of power values.
=1:40, either the names of the studies, or their numbers. If missing all the studies are run.
=1:5, either the types of studies, or their numbers. If missing all types are run.
="cont", continuous or discrete data
routine to calculate test statistics.
list passed to TS.
=FALSE does user supplied routine return p values?
= 500, desired sample size.
=0.05 type I error
= 1000
= TRUE
For details consult vignette("R2sample","R2sample")
TSextra=list(nbins=5, statistic=FALSE) # Use 5 bins and calculate p values run.studies(1:2, 1:2, TS=myTS_cont, TSextra=TSextra, With.p.value=TRUE, B=100)
Run the code above in your browser using DataLab