Description Usage Arguments Value Author(s) Examples
A helper function– turns a missing column into 'NA's inside of a with statement. Included at the user level because its useful in setting up batch jobs, especially since the 'pwrFDR' return argument list varies depending on the manner called.
1 | nna(x)
|
x |
A named numeric vector component of a data frame which may or may not be present. |
Either the values in the component x
of the data.frame or NA\'s of equal length
Grant Izmirlian <izmirlian at nih dot gov>
1 2 3 4 5 6 7 8 9 | sim.1 <- pwrFDR(effect.size=0.8, n.sample=60, lambda=0.90, r.1=0.05, N.tests=450, alpha=0.15,
method="sim", FDP.control.method="BHCLT")
sim.2 <- pwrFDR(effect.size=0.8, n.sample=60, lambda=0.90, r.1=0.05, N.tests=450, alpha=0.15,
method="sim", FDP.control.method="both", control=list(sim.level=2))
with(detail(sim.1)$reps, cbind(R.st/100, nna(R.R)/450))
with(detail(sim.2)$reps, cbind(R.st/100, nna(R.R)/450))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.