samsize_pcc | R Documentation |
Determine the sample size necessary to estimate the probability of correct classification (PCC) to within a certain tolerance of the optimal (Bayes) PCC.
samsize_pcc(effect, tolerance, p = 0.5, nfeat = 1, dfeat = 1)
effect |
Effect size (difference in means divided by SD) |
tolerance |
Sample size is found such that |
p |
Proportion of less common class (default 0.5) |
nfeat |
Number of features |
dfeat |
Number of differential features. Note that Dobbin & Simon recommend using dfeat=1. |
Assumes a multivariate normal distribution with spherical variance.
Loosely based on the function MKmisc::ssize.pcc()
, but with two primary
differences:
Doesn't solve for worst case scenario over 1:dfeat, just uses dfeat.
Uses tpower()
rather than approximating the power of the t-test.
Object of class 'power.htest“, a list of the arguments augmented with method and note elements.
samsize_pcc(0.5, 0.001)
samsize_pcc(1, 0.1, nfeat=22000)
samsize_pcc(0.8, 0.1, p=1/3, nfeat=22000, dfeat=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.