Description Usage Arguments Details Value Author(s) References Examples
Provides Minimum Detectable Difference in Means Between Two Populations for fixed values of sigma and n. Useful for experimental design for randomized trials.
1 | diffDetect(N,sigma,alpha=0.05, power=0.8, two.tailed=TRUE)
|
N |
A Vector (or single value) of fixed sample sizes. |
sigma |
A Vector (or single value) of fixed standard deviations sizes. |
alpha |
The desired Type I Error Rate |
power |
The desired level of power, recall power = 1 - Type II Error. |
two.tailed |
Logical, If TRUE calculations are based on a two-tailed Type I error, if FALSE, a one-sided calculation is performed. |
This function can be used as a tool for sensitivity analysis on the choice of population standard deviation. As is often the case, the sample size is fixed by practical considerations, such as cost or difficulty recruiting subjects. This simple tool may help determine whether it is worth performing an experiment that can only detect a given calculated difference between means.
delta |
A Matrix of minimum detectable differences for fixed values of n and sigma |
N |
A Vector (or single value) of specified sample sizes. |
sigma |
A Vector (or single value) of specified standard deviations sizes. |
alpha |
The desired Type I Error Rate |
power |
The desired level of power, recall power = 1 - Type II Error. |
two.tailed |
Logical, If TRUE calculations are based on a two-tailed Type I error, if FALSE, a one-sided calculation is performed. |
Michael Rotondi, mrotondi@yorku.ca
Matthews JNS. Introduction to Randomized Controlled Clinical Trials (2nd Ed.) Chapman & Hall: New York, 2006.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.