Learn R Programming

RSPS (version 1.0)

RSPS-package: Provides estimates of power or sample size using empirical approach.

Description

The R package RSPS uses an efficient simulation algorithm to empirically determine statistical power and necessary sample size for RNA-Seq studies. The data are simulated from Poisson (no overdispersion) or Negative Binomial distribution (overdispersion). The package allows one to monitor the progress of the function when the power is being computed. There are two functions for providing plots of the estimated power for given sample size and estimated sample size to achieve desired power.

Arguments

Details

Package:
RSPS
Type:
Package
Version:
1.0
Date:
2015-05-19
License:
GPL-2

References

If necessary, users are referred to power and sample sizes computation found in introductory statistics textbooks.

See Also

rpoiss, rnbinom

Examples

Run this code
power.poiss <- poiss.pow(n=c(5,10,15),lambda1=c(3),k=c(2,2.5,3),
alpha=0.05,seed = 20,numsim=100,monitor=TRUE)
power.poiss
power.plot(power.poiss,cutoff=c(0.8,0.9))
# Another example (takes longer to run)
#power.poiss <- poiss.pow(n=c(3,5,10,15),lambda1=c(3),k=c(2,2.5,3),
#alpha=0.001,seed = 20,numsim=500,monitor=TRUE)
#power.poiss
#power.plot(power.poiss,cutoff=c(0.8,0.9))

Run the code above in your browser using DataLab