powered by
Function to evaluate power, test if a sample size is large enough to detect necessity.
nca_power(n = c(20, 50, 100), effect = 0.10, slope = 1, ceiling = "ce_fdh", p = 0.05, distribution.x = "uniform", distribution.y = "uniform", rep = 100, test.rep = 200)
Number of datapoints to generate, either an integer or a vector of integers.
Effect size of the generated datasets.
Slope of the line.
Ceiling technique to use for this analysis
Targeted confidence level
Distribution type(s) for X, "uniform" (default) or "normal".
Distribution type(s) for Y, "uniform" (default) or "normal".
Number of analyses done per iteration.
Number of resamples in the statistical approximate permutation test. For test.rep = 0 no statistical test is performed
# Simple example if (FALSE) results <- nca_power() results <- nca_power(rep=1, test.rep = 1) print(results)
Run the code above in your browser using DataLab