ssize.fdr

R 패키지 메타데이터와 수집 신호를 모아 봅니다.

Packages / CRAN / ssize.fdr

ssize.fdr

v1.3
Repository CRANLicense GPL-3Lifecycle activeNeeds compilation no
DOI
10.32614/CRAN.package.ssize.fdr
Task views
Design of Experiments (DoE) & Analysis of Experimental Data, Genomics, Proteomics, Metabolomics, Transcriptomics, and Other Omics
Reverse imports
38

Core Signals

첫 화면에서 판단해야 할 수집 신호를 먼저 배치합니다.

2
Task views
Design of Experiments (DoE) & Analysis of Experimental Data, Genomics, Proteomics, Metabolomics, Transcriptomics, and Other Omics
Reverse imports
38

Supported Backends

DESCRIPTION에서 감지한 backend 관련 package입니다.

0
backend package 신호가 없습니다.

Quick Facts

기본 메타데이터를 작은 카드와 토큰으로 압축합니다.

profile
Repository
CRAN
Version
1.3
License
GPL-3
Lifecycle
active
Needs compilation
no
Reverse imports
38
Last observed
2026-05-30
CRAN
cran.r-project.org/package=ssize.fdr

수집 소스별 패키지 정보

1개 소스
CRAN
1.3
2026-05-30
License
GPL-3
Needs compilation
no
Reverse imports
38
Lifecycle
active
Last observed
2026-05-30 10:45:11

이 패키지가 의존하는 패키지

0개 표시전체 0개
PackageTypeSpec
표시할 dependency edge가 없습니다.
1 / 1

이 패키지를 쓰는 패키지

1개 표시전체 1개
PackageTypeSpec
ssizeRNA
1.3.3
CRAN · 2026-05-30
Importsssize.fdr
1 / 1

Reverse dependency summary

1 types
TypePackages
Imports1

패키지 페이지

Reverse imports
2
All links
18
Repository
CRAN
Version
1.3
Collected
2026-05-18 21:17:38
Package page
https://cran.r-project.org/web/packages/ssize.fdr/index.html
DOI
10.32614/CRAN.package.ssize.fdr
CRAN checks
https://cran.r-project.org/web/checks/check_results_ssize.fdr.html
Reference HTML
https://cran.r-project.org/web/packages/ssize.fdr/refman/ssize.fdr.html
Reference PDF
https://cran.r-project.org/web/packages/ssize.fdr/ssize.fdr.pdf
Source package
https://cran.r-project.org/src/contrib/ssize.fdr_1.3.tar.gz
Archive
https://CRAN.R-project.org/src/contrib/Archive/ssize.fdr
In views
ExperimentalDesignOmics
Page fields
Author
Megan Orr [aut, cre], Peng Liu [aut]
CRAN Checks
ssize.fdr results
DOI
10.32614/CRAN.package.ssize.fdr
In Views
ExperimentalDesign , Omics
License
GPL-3
Maintainer
Megan Orr <megan.orr at ndsu.edu>
NeedsCompilation
no
Old Sources
ssize.fdr archive
Package Source
ssize.fdr_1.3.tar.gz
Published
2022-06-07
Reference Manual
ssize.fdr.html , ssize.fdr.pdf
Reverse Imports
ssizeRNA
Version
1.3
Windows Binaries
r-devel: ssize.fdr_1.3.zip , r-release: ssize.fdr_1.3.zip , r-oldrel: ssize.fdr_1.3.zip
MacOS Binaries
r-release (arm64): ssize.fdr_1.3.tgz , r-oldrel (arm64): ssize.fdr_1.3.tgz , r-release (x86_64): ssize.fdr_1.3.tgz , r-oldrel (x86_64): ssize.fdr_1.3.tgz
Version
1.3
Published
2022-06-07
DOI
10.32614/CRAN.package.ssize.fdr
Author
Megan Orr [aut, cre], Peng Liu [aut]
Maintainer
Megan Orr <megan.orr at ndsu.edu>
License
GPL-3
NeedsCompilation
no
In Views
ExperimentalDesign , Omics
CRAN Checks
ssize.fdr results
Reference Manual
ssize.fdr.html , ssize.fdr.pdf
Package Source
ssize.fdr_1.3.tar.gz
Windows Binaries
r-devel: ssize.fdr_1.3.zip , r-release: ssize.fdr_1.3.zip , r-oldrel: ssize.fdr_1.3.zip
MacOS Binaries
r-release (arm64): ssize.fdr_1.3.tgz , r-oldrel (arm64): ssize.fdr_1.3.tgz , r-release (x86_64): ssize.fdr_1.3.tgz , r-oldrel (x86_64): ssize.fdr_1.3.tgz
Old Sources
ssize.fdr archive
Reverse Imports
ssizeRNA
Page sections 4
Documentation
Heading
Documentation
Links
[{"label":"ssize.fdr.html","section":"","type":"","url":"https://cran.r-project.org/web/packages/ssize.fdr/refman/ssize.fdr.html"},{"label":"ssize.fdr.pdf","section":"","type":"","url":"https://cran.r-project.org/web/packages/ssize.fdr/ssize.fdr.pdf"}]
Text
Reference manual: ssize.fdr.html , ssize.fdr.pdf
Downloads
Heading
Downloads
Links
[{"label":"ssize.fdr_1.3.tar.gz","section":"","type":"","url":"https://cran.r-project.org/src/contrib/ssize.fdr_1.3.tar.gz"},{"label":"ssize.fdr_1.3.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.7/ssize.fdr_1.3.zip"},{"label":"ssize.fdr_1.3.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.6/ssize.fdr_1.3.zip"},{"label":"ssize.fdr_1.3.zip","section":"","type":"","url":"https://cran.r-project.org/bin/windows/contrib/4.5/ssize.fdr_1.3.zip"},{"label":"ssize.fdr_1.3.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/sonoma-arm64/contrib/4.6/ssize.fdr_1.3.tgz"},{"label":"ssize.fdr_1.3.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.5/ssize.fdr_1.3.tgz"},{"label":"ssize.fdr_1.3.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.6/ssize.fdr_1.3.tgz"},{"label":"ssize.fdr_1.3.tgz","section":"","type":"","url":"https://cran.r-project.org/bin/macosx/big-sur-x86_64/contrib/4.5/ssize.fdr_1.3.tgz"},{"label":"ssize.fdr archive","section":"","type":"","url":"https://CRAN.R-project.org/src/contrib/Archive/ssize.fdr"}]
Text
Package source: ssize.fdr_1.3.tar.gz Windows binaries: r-devel: ssize.fdr_1.3.zip , r-release: ssize.fdr_1.3.zip , r-oldrel: ssize.fdr_1.3.zip macOS binaries: r-release (arm64): ssize.fdr_1.3.tgz , r-oldrel (arm64): ssize.fdr_1.3.tgz , r-release (x86_64): ssize.fdr_1.3.tgz , r-oldrel (x86_64): ssize.fdr_1.3.tgz Old sources: ssize.fdr archive
Reverse dependencies
Heading
Reverse dependencies
Links
[{"label":"ssizeRNA","section":"","type":"","url":"https://cran.r-project.org/web/packages/ssizeRNA/index.html"}]
Text
Reverse imports: ssizeRNA
Linking
Heading
Linking
Links
[{"label":"https://CRAN.R-project.org/package=ssize.fdr","section":"","type":"","url":"https://CRAN.R-project.org/package=ssize.fdr"}]
Text
Please use the canonical form https://CRAN.R-project.org/package=ssize.fdr to link to this page.
Documentation 2
Downloads 9
All page links 18

패키지 문서 원문

2 artifacts
reference_manual_html
Reference manual HTML
CRAN · 1.3 · Documentation · text/html · 42,801 · 2026-05-07
Title
Help for package ssize.fdr
Label
Reference manual HTML
Text content
Text content
Help for package ssize.fdr const macros = { "\\R": "\\textsf{R}", "\\mbox": "\\text", "\\code": "\\texttt"}; function processMathHTML() { var l = document.getElementsByClassName('reqn'); for (let e of l) { katex.render(e.textContent, e, { throwOnError: false, macros }); } return; } Package {ssize.fdr} Contents ssize.fdr-package ssize.F ssize.Fvary ssize.oneSamp ssize.oneSampVary ssize.twoSamp ssize.twoSampVary Type: Package Title: Sample Size Calculations for Microarray Experiments Version: 1.3 Author: Megan Orr [aut, cre], Peng Liu [aut] Maintainer: Megan Orr <megan.orr@ndsu.edu> Description: Functions that calculate appropriate sample sizes for one-sample t-tests, two-sample t-tests, and F-tests for microarray experiments based on desired power while controlling for false discovery rates. For all tests, the standard deviations (variances) among genes can be assumed fixed or random. This is also true for effect sizes among genes in one-sample and two sample experiments. Functions also output a chart of power versus sample size, a table of power at different sample sizes, and a table of critical test values at different sample sizes. License: GPL-3 Encoding: UTF-8 NeedsCompilation: no Packaged: 2022-06-06 06:11:56 UTC; megan Repository: CRAN Date/Publication: 2022-06-07 04:30:02 UTC Sample Size Calculations for Microarray Experiments Description This package calculates appropriate sample sizes for one-sample, two-sample, and multi-sample microarray experiments for a desired power of the test. Sample sizes are calculated under controlled false discovery rates and fixed proportions of non-differentially expressed genes. Outputs a graph of power versus sample size. Details Package: ssize.fdr Type: Package Version: 1.3 Date: 2022-06-05 License: GPL-3 For all functions, the user inputs the desired power, the false discovery rate to be controlled, the proportion(s) of non- differentially expressed genes, and the maximum possible sample size to be used in calculations. If the user inputs a vector of proportions of non-differentially expressed genes, samples size calculations are performed for each proportion. For the function ssize.twoSamp , the user must additionally input the common difference in mean treatment expressions as well as the common standard deviation for all genes. This becomes the common effect size and common standard deviation for all genes when using the function ssize.oneSamp . For the function ssize.twoSampVary ( ssize.oneSampVary ) the differences in mean treatment expressions (effect sizes) are assumed to follow a normal distribution and the variances among genes are assumed to follow an inverse gamma distribution, so parameters for these distributions must be entered. For the function ssize.F , the design matrix of the experiment, the parameter vector, and an optional coefficient matrix or vector of linear contrasts of interest must also be entered. The function ssize.Fvary allows the variances of the genes to follow an inverse gamma distribution, so the shape and scale parameters must be specified by the user. Author(s) Megan Orr <megan.orr@ndsu.edu>, Peng Liu <pliu@iastate.edu> References Liu, Peng and J. T. Gene Hwang. 2007. Quick calculation for sample size while controlling false discovery rate with application to microarray analysis. Bioinformatics 23(6): 739-746. Examples a<-0.05 ##false discovery rate to be controlled pwr<-0.8 ##desired power p0<-c(0.5,0.9,0.95) ##proportions of non-differentially expressed genes N<-20; N1<-35 ##maximum sample size for calculations ##Example of function ssize.oneSamp d<-1 ##effect size s<-0.5 ##standard deviation os<-ssize.oneSamp(delta=d,sigma=s,fdr=a,power=pwr,pi0=p0,maxN=N,side="two-sided") os$ssize ##first sample sizes to reach desired power os$power ##calculated power for each sample size os$crit.vals ##calculated critical value for each sample size ##Example of function ssize.oneSampVary dm<-2; ds<-1 ##the effect sizes of the genes follow a Normal(2,1) distribution alph<-3; beta<-1 ##the variances of the genes follow an Inverse Gamma(3,1) distribution. osv<-ssize.oneSampVary(deltaMean=dm,deltaSE=ds,a=alph,b=beta,fdr=a,power=pwr, pi0=p0,maxN=N1,side="two-sided") osv$ssize ##first sample sizes to reach desired power osv$power ##calculated power for each sample size osv$crit.vals ##calculated critical value for each sample size ##Example of function ssize.twoSamp ##Calculates sample sizes for two-sample microarray experiments ##See Figure 1.(a) of Liu & Hwang (2007) d1<-1 ##difference in differentially expressed genes to be detected s1<-0.5 ##standard deviation ts<-ssize.twoSamp(delta=d1,sigma=s1,fdr=a,power=pwr,pi0=pi,maxN=N,side="two-sided") ts$ssize ##first sample sizes to reach desired power ts$power ##calculated power for each sample size ts$crit.vals ##calculated critical value for each sample size ##Example of function ssize.twoSampVary ##Calculates sample sizes for multi-sample microarray experiments in which both the differences in ##expressions between treatments and the standard deviations vary among genes. ##See Figure 3.(a) of Liu & Hwang (2007) dm<-2 ##mean parameter of normal distribution of differences ##between treatments among genes ds<-1 ##standard deviation parameter of normal distribution ##of differences between treatments among genes alph<-3 ##shape parameter of inverse gamma distribution followed ##by standard deviations of genes beta<-1 ##scale parameter of inverse gamma distribution followed ##by standard deviations of genes tsv<-ssize.twoSampVary(deltaMean=dm,deltaSE=ds,a=alph,b=beta, fdr=a,power=pwr,pi0=p0,maxN=N1,side="two-sided") tsv$ssize ##first sample sizes to reach desired power tsv$power ##calculated power for each sample size tsv$crit.vals ##calculated critical value for each sample sizesv ##Example of function ssize.F ##Sample size calculation for three-treatment loop design microarray experiment ##See Figure S2. of Liu & Hwang (2007) des<-matrix(c(1,-1,0,0,1,-1),ncol=2,byrow=FALSE) ##design matrix of loop design experiment b<-c(1,-0.5) ##difference between first two treatments is 1 and ##second and third treatments is -0.5 df<-function(n){3*n-2} ##degrees of freedom for this design is 3n-2 s<-1 ##standard deviation p0.F<-c(0.5,0.9,0.95,0.995) ##proportions of non-differentially expressed genes ft<-ssize.F(X=des,beta=b,dn=df,sigma=s,fdr=a,power=pwr,pi0=p0.F,maxN=N) ft$ssize ##first sample sizes to reach desired power ft$power ##calculated power for each sample size ft$crit.vals ##calculated critical value for each sample sizeft$ssize ##Example of function ssize.Fvary ##Sample size calculation for three-treatment loop design microarray experiment des<-matrix(c(1,-1,0,0,1,-1),ncol=2,byrow=FALSE) ##design matrix of loop design experiment b<-c(1,-0.5) ##difference between first two treatments is 1 and ##second and third treatments is -0.5 df<-function(n){3*n-2} ##degrees of freedom for this design is 3n-2 alph<-3;beta<-1 ##variances among genes follow an Inverse Gamma(3,1) a1<-0.05 ##fdr to be fixed p0.F<-c(0.9,0.95,0.995) ##proportions of non-differentially expressed genes ftv<-ssize.Fvary(X=des,beta=b,dn=df,a=alph,b=beta,fdr=a1,power=pwr,pi0=p0,maxN=N1) ftv$ssize ##first sample sizes to reach desired power ftv$power ##calculated power for each sample size ftv$crit.vals ##calculated critical value for each sample sizeft$ssize Sample Size Calculations for Multi-Sample Microarray Experiments Description Calculates appropriate sample sizes for multi-sample microarray experiments for a desired power. Sample size calculations are performed at controlled false discovery rates and user-specified proportions of non-differentially expressed genes, design matrix, and standard deviation. A graph of power versus sample size is created. Usage ssize.F(X, beta, L = NULL, dn, sigma, fdr = 0.05, power = 0.8, pi0 = 0.95, maxN = 20, cex.title=1.15, cex.legend=1) Arguments X design matrix of experiment beta parameter vector L coefficient matrix or vector for linear contrast
section
ssize.fdr.pdf
CRAN · 1.3 · Documentation · application/pdf · 121,824 · 2026-05-07
Title
ssize.fdr.pdf
Label
ssize.fdr.pdf

Reference for ssize.fdr (1.3)

6개 topic
ssize.F
Sample Size Calculations for Multi-Sample Microarray Experiments
CRAN · 1.3 · ssize.fdr/man/ssize.F.Rd · 2026-05-07

Calculates appropriate sample sizes for multi-sample microarray experiments for a desired power. Sample size calculations are performed at controlled false discovery rates and user-specified proportions of non-differentially expressed genes, design matrix, and standard deviation. A graph of power versus sample size is created.

Aliases
ssize.F
Usage
ssize.F(X, beta, L = NULL, dn, sigma, fdr = 0.05, power = 0.8, pi0 = 0.95, maxN = 20, cex.title=1.15, cex.legend=1)
Arguments
X
design matrix of experiment
beta
parameter vector
L
coefficient matrix or vector for linear contrasts of interest
dn
a function of the degrees of freedom based on the design of the experiment
sigma
the standard deviation for all genes
fdr
the false discovery rate to be controlled
power
the desired power to be achieved
pi0
a vector (or scalar) of proportions of non-differentially expressed genes
maxN
the maximum sample size used for power calculations
cex.title
controls size of chart titles
cex.legend
controls size of chart legend
Details
Standard deviations are assumed to be identical for all genes. See the function ssize.Fvary for sample size calculations with varying standard deviations among genes. If a vector is input for pi0, sample size calculations are performed for each proportion.
Value
ssizesample sizes (for each treatment) at which desired power is first reached powerpower calculations with corresponding sample sizes crit.valscritical value calculations with corresponding sample sizes
Examples
##Sample size calculation for three-treatment loop design microarray experiment ##See Figure S2 of Liu & Hwang (2007) des<-matrix(c(1,-1,0,0,1,-1),ncol=2,byrow=FALSE) ##design matrix of loop design experiment b<-c(1,-0.5) ##difference between first two treatments is 1 and #second and third treatments is -0.5 df<-function(n)3*n-2 ##degrees of freedom for this design is 3n-2 s<-1 ##standard deviation a<-0.05 ##false discovery rate to be controlled pwr1<-0.8 ##desired power p0<-c(0.5,0.9,0.95,0.995) ##proportions of non-differentially expressed genes N1<-20 ##maximum sample size for calculations ft<-ssize.F(X=des,beta=b,dn=df,sigma=s,fdr=a,power=pwr1,pi0=p0,maxN=N1) ft$ssize ##first sample sizes to reach desired power for each proportion of #non-differentially expressed genes ft$power ##power for each sample size ft$crit.vals ##critical value for each sample size
See also
ssize.twoSampVary, ssize.oneSamp, ssize.oneSampVary, ssize.F, ssize.Fvary
Note
Powers calculated to be 0 may be negligibly conservative. Critical values calculated as NA are values >100.
Author
Megan Orr megan.orr@ndsu.edu, Peng Liu pliu@iastate.edu
References
Liu, Peng and J. T. Gene Hwang. 2007. Quick calculation for sample size while controlling false discovery rate with application to microarray analysis. Bioinformatics 23(6): 739-746.
ssize.fdr-package
Sample Size Calculations for Microarray Experiments
CRAN · 1.3 · package · ssize.fdr/man/ssize.fdr-package.Rd · 2026-05-07

This package calculates appropriate sample sizes for one-sample, two-sample, and multi-sample microarray experiments for a desired power of the test. Sample sizes are calculated under controlled false discovery rates and fixed proportions of non-differentially expressed genes. Outputs a graph of power versus sample size.

Aliases
ssize.fdr-packagessize.fdr
Keywords
package
Details
ll Package: ssize.fdr Type: Package Version: 1.3 Date: 2022-06-05 License: GPL-3 For all functions, the user inputs the desired power, the false discovery rate to be controlled, the proportion(s) of non- differentially expressed genes, and the maximum possible sample size to be used in calculations. If the user inputs a vector of proportions of non-differentially expressed genes, samples size calculations are performed for each proportion. For the function ssize.twoSamp, the user must additionally input the common difference in mean treatment expressions as well as the common standard deviation for all genes. This becomes the common effect size and common standard deviation for all genes when using the function ssize.oneSamp. For the function ssize.twoSampVary (ssize.oneSampVary) the differences in mean treatment expressions (effect sizes) are assumed to follow a normal distribution and the variances among genes are assumed to follow an inverse gamma distribution, so parameters for these distributions must be entered. For the function ssize.F, the design matrix of the experiment, the parameter vector, and an optional coefficient matrix or vector of linear contrasts of interest must also be entered. The function ssize.Fvary allows the variances of the genes to follow an inverse gamma distribution, so the shape and scale parameters must be specified by the user.
Examples
a<-0.05 ##false discovery rate to be controlled pwr<-0.8 ##desired power p0<-c(0.5,0.9,0.95) ##proportions of non-differentially expressed genes N<-20; N1<-35 ##maximum sample size for calculations ##Example of function ssize.oneSamp d<-1 ##effect size s<-0.5 ##standard deviation os<-ssize.oneSamp(delta=d,sigma=s,fdr=a,power=pwr,pi0=p0,maxN=N,side="two-sided") os$ssize ##first sample sizes to reach desired power os$power ##calculated power for each sample size os$crit.vals ##calculated critical value for each sample size ##Example of function ssize.oneSampVary dm<-2; ds<-1 ##the effect sizes of the genes follow a Normal(2,1) distribution alph<-3; beta<-1 ##the variances of the genes follow an Inverse Gamma(3,1) distribution. osv<-ssize.oneSampVary(deltaMean=dm,deltaSE=ds,a=alph,b=beta,fdr=a,power=pwr, pi0=p0,maxN=N1,side="two-sided") osv$ssize ##first sample sizes to reach desired power osv$power ##calculated power for each sample size osv$crit.vals ##calculated critical value for each sample size ##Example of function ssize.twoSamp ##Calculates sample sizes for two-sample microarray experiments ##See Figure 1.(a) of Liu & Hwang (2007) d1<-1 ##difference in differentially expressed genes to be detected s1<-0.5 ##standard deviation ts<-ssize.twoSamp(delta=d1,sigma=s1,fdr=a,power=pwr,pi0=pi,maxN=N,side="two-sided") ts$ssize ##first sample sizes to reach desired power ts$power ##calculated power for each sample size ts$crit.vals ##calculated critical value for each sample size ##Example of function ssize.twoSampVary ##Calculates sample sizes for multi-sample microarray experiments in which both the differences in ##expressions between treatments and the standard deviations vary among genes. ##See Figure 3.(a) of Liu & Hwang (2007) dm<-2 ##mean parameter of normal distribution of differences ##between treatments among genes ds<-1 ##standard deviation parameter of normal distribution ##of differences between treatments among genes alph<-3 ##shape parameter of inverse gamma distribution followed ##by standard deviations of genes beta<-1 ##scale parameter of inverse gamma distribution followed ##by standard deviations of genes tsv<-ssize.twoSampVary(deltaMean=dm,deltaSE=ds,a=alph,b=beta, fdr=a,power=pwr,pi0=p0,maxN=N1,side="two-sided") tsv$ssize ##first sample sizes to reach desired power tsv$power ##calculated power for each sample size tsv$crit.vals ##calculated critical value for each sample sizesv ##Example of function ssize.F ##Sample size calculation for three-treatment loop design microarray experiment ##See Figure S2. of Liu & Hwang (2007) des<-matrix(c(1,-1,0,0,1,-1),ncol=2,byrow=FALSE) ##design matrix of loop design experiment b<-c(1,-0.5) ##difference between first two treatments is 1 and ##second and third treatments is -0.5 df<-function(n)3*n-2 ##degrees of freedom for this design is 3n-2 s<-1 ##standard deviation p0.F<-c(0.5,0.9,0.95,0.995) ##proportions of non-differentially expressed genes ft<-ssize.F(X=des,beta=b,dn=df,sigma=s,fdr=a,power=pwr,pi0=p0.F,maxN=N) ft$ssize ##first sample sizes to reach desired power ft$power ##calculated power for each sample size ft$crit.vals ##calculated critical value for each sample sizeft$ssize ##Example of function ssize.Fvary ##Sample size calculation for three-treatment loop design microarray experiment des<-matrix(c(1,-1,0,0,1,-1),ncol=2,byrow=FALSE) ##design matrix of loop design experiment b<-c(1,-0.5) ##difference between first two treatments is 1 and ##second and third treatments is -0.5 df<-function(n)3*n-2 ##degrees of freedom for this design is 3n-2 alph<-3;beta<-1 ##variances among genes follow an Inverse Gamma(3,1) a1<-0.05 ##fdr to be fixed p0.F<-c(0.9,0.95,0.995) ##proportions of non-differentially expressed genes ftv<-ssize.Fvary(X=des,beta=b,dn=df,a=alph,b=beta,fdr=a1,power=pwr,pi0=p0,maxN=N1) ftv$ssize ##first sample sizes to reach desired power ftv$power ##calculated power for each sample size ftv$crit.vals ##calculated critical value for each sample sizeft$ssize
Author
Megan Orr <megan.orr@ndsu.edu>, Peng Liu <pliu@iastate.edu>
References
Liu, Peng and J. T. Gene Hwang. 2007. Quick calculation for sample size while controlling false discovery rate with application to microarray analysis. Bioinformatics 23(6): 739-746.
ssize.oneSamp
Sample Size Calculations for One-Sample Microarray Experiments
CRAN · 1.3 · ssize.fdr/man/ssize.oneSamp.Rd · 2026-05-07

Calculates appropriate sample sizes for one-sample microarray experiments for a desired power. Sample size calculations are performed at controlled false discovery rates and user-specified proportions of non-differentially expressed genes, effect size, and standard deviation. A graph of power versus sample size is created.

Aliases
ssize.oneSamp
Usage
ssize.oneSamp(delta, sigma, fdr = 0.05, power = 0.8, pi0 = 0.95, maxN = 35, side = "two-sided", cex.title=1.15, cex.legend=1)
Arguments
delta
the common effect size for all genes
sigma
the standard deviation for all genes
fdr
the false discovery rate to be controlled
power
the desired power to be achieved
pi0
a vector (or scalar) of proportions of non-differentially expressed genes
maxN
the maximum sample size used for power calculations
side
options are "two-sided", "upper", or "lower"
cex.title
controls size of chart titles
cex.legend
controls size of chart legend
Details
Effect sizes and standard deviations are assumed to be identical for all genes. See the function ssize.oneSampVary for sample size calculations with varying effects sizes and standard deviations among genes. If a vector is input for pi0, sample size calculations are performed for each proportion.
Value
ssizesample sizes at which desired power is first reached powerpower calculations with corresponding sample sizes crit.valscritical value calculations with corresponding sample sizes
Examples
d<-2 ##effect size s<-1 ##standard deviation a<-0.05 ##false discovery rate to be controlled pwr<-0.8 ##desired power p0<-c(0.5,0.9,0.95) ##proportions of non-differentially expressed genes N<-20 ##maximum sample size for calculations os<-ssize.oneSamp(delta=d,sigma=s,fdr=a,power=pwr,pi0=p0,maxN=N,side="two-sided") os$ssize ##first sample sizes to reach desired power os$power ##calculated power for each sample size os$crit.vals ##calculated critical value for each sample size
See also
ssize.twoSampVary, ssize.oneSamp, ssize.oneSampVary, ssize.F, ssize.Fvary
Note
Powers calculated to be 0 may be negligibly conservative. Critical values calculated as NA are values >20. Running this function with the side option of lower will possibly result in multiple warnings. Calculating the probability that an observation is less than the negative critical value under a t-distribution with non-centrality parameter delta/sigma (see argument section above) and the appropriate degrees of freedom is a calculation that is performed many times while the function runs. When the difference between the critical value and delta/sigma is large, this probability is virtually zero. This happens repeatedly while the function optimize finds the appropriate critical value for each sample size. Because of this, the function pt outputs a value <1e-8 in addition to a warning of full precision not achieved. This has no impact on the accuracy of the resulting calculations of sample size.
Author
Megan Orr megan.orr@ndsu.edu, Peng Liu pliu@iastate.edu
References
Liu, Peng and J. T. Gene Hwang. 2007. Quick calculation for sample size while controlling false discovery rate with application to microarray analysis. Bioinformatics 23(6): 739-746.
ssize.oneSampVary
Sample Size Calculations for One-Sample Microarray Experiments with Differing Mean Expressions and Standard Deviations A...
CRAN · 1.3 · ssize.fdr/man/ssize.oneSampVary.Rd · 2026-05-07

Calculates appropriate sample sizes for two-sample microarray experiments in which effect sizes as well as variances vary among genes. Sample sizes are determined based on a desired power, a controlled false discovery rate, and user-specified proportions of non-differentially expressed genes. Outputs a graph of power versus sample size. A graph of power versus sample size is created.

Aliases
ssize.oneSampVary
Usage
ssize.oneSampVary(deltaMean, deltaSE, a, b, fdr = 0.05, power = 0.8, pi0 = 0.95, maxN = 35, side = "two-sided", cex.title=1.15, cex.legend=1)
Arguments
deltaMean
mean of normal distribution followed by effect sizes among genes
deltaSE
standard deviation of normal distribution followed by effect sizes among genes
a
shape parameter of inverse gamma distribution followed by variances of genes
b
scale parameter of inverse gamma distribution followed by variances of genes
fdr
the false discovery rate to be controlled
power
the desired power to be achieved
pi0
a vector (or scalar) of proportions of non-differentially expressed genes
maxN
the maximum sample size used for power calculations
side
options are "two-sided", "upper", or "lower"
cex.title
controls size of chart titles
cex.legend
controls size of chart legend
Details
The effect sizes among genes are assumed to follow a Normal distribution with mean specified by deltaMean and standard deviation specified by deltaSE. The variances among genes are assumed to follow an Inverse Gamma distribution with shape parameter a and scale parameter b. If a vector is input for pi0, sample size calculations are performed for each proportion.
Value
ssizesample sizes (for each treatment) at which desired power is first reached powerpower calculations with corresponding sample sizes crit.valscritical value calculations with corresponding sample sizes
Examples
dm<-2; ds<-1 ##the effect sizes of the genes follow a Normal(2,1) distribution alph<-3; beta<-1 ##the variances of the genes follow an Inverse Gamma(3,1) distribution. a2<-0.05 ##false discovery rate to be controlled pwr2<-0.8 ##desired power p0<-c(0.90,0.95,0.995) ##proportions of non-differentially expressed genes N1<-35 ##maximum sample size to be used in calculations osv<-ssize.oneSampVary(deltaMean=dm,deltaSE=ds,a=alph,b=beta,fdr=a2,power=pwr2,pi0=p0, maxN=N1,side="two-sided") osv$ssize ##first sample sizes to reach desired power osv$power ##calculated power for each sample size osv$crit.vals ##calculated critical value for each sample size
See also
ssize.twoSampVary, ssize.oneSamp, ssize.oneSampVary, ssize.F, ssize.Fvary
Note
Numerical integration used in calculations performed by the function integrate, which uses adaptive quadrature of functions. Powers calculated to be 0 may be negligibly conservative. Critical values calculated as NA are values >20. Running this function may result in many warnings. Probabilities under different t-distributions with non-zero non-centrality parameters are calculated many times while the function runs. If these probabilities are virtually zero, the function pt outputs a value <1e-8 and outputs a warning of full precision not achieved. These values have no impact on the accuracy of the resulting calculations.
Author
Megan Orr megan.orr@ndsu.edu, Peng Liu pliu@iastate.edu
References
Liu, Peng and J. T. Gene Hwang. 2007. Quick calculation for sample size while controlling false discovery rate with application to microarray analysis. Bioinformatics 23(6): 739-746.
ssize.twoSamp
Sample Size Calculations for Two-Sample Microarray Experiments
CRAN · 1.3 · ssize.fdr/man/ssize.twoSamp.Rd · 2026-05-07

Calculates appropriate sample sizes for two-sample microarray experiments for a desired power. Sample size calculations are performed at controlled false discovery rates, user-specified proportions of non-differentially expressed genes, effect size, and standard deviation. A graph of power versus sample size is created.

Aliases
ssize.twoSamp
Usage
ssize.twoSamp(delta, sigma, fdr = 0.05, power = 0.8, pi0 = 0.95, maxN = 35, side = "two-sided", cex.title=1.15, cex.legend=1)
Arguments
delta
the common difference in mean expressions between the two samples for all genes
sigma
the common standard deviation of expressions for all genes
fdr
the false discovery rate to be controlled
power
the desired power to be achieved
pi0
a vector (or scalar) of proportions of non-differentially expressed genes
maxN
the maximum sample size used for power calculations
side
options are "two-sided", "upper", or "lower"
cex.title
controls size of chart titles
cex.legend
controls size of chart legend
Details
The true difference between mean expressions of the two samples as well as the standard deviations of expressions are assumed identical for all genes. See the function ssize.twoSampVary for sample size calculations with varying differences between sample mean expressions and standard deviations among genes. If a vector is input for pi0, sample size calculations are performed for each proportion.
Value
ssizesample sizes (for each treatment) at which desired power is first reached powerpower calculations with corresponding sample sizes crit.valscritical value calculations of two-sample t-test with corresponding sample sizes
Examples
##See Figure 1.(a) of Liu & Hwang (2007) d<-1 ##difference in differentially expressed genes to be detected s<-0.5 ##standard deviation a<-0.05 ##false discovery rate to be controlled pwr<-0.8 ##desired power p0<-c(0.5,0.9,0.95) ##proportions of non-differentially expressed genes N<-20 ##maximum sample size for calculations ts<-ssize.twoSamp(delta=d,sigma=s,fdr=a,power=pwr,pi0=p0,maxN=N,side="two-sided") ts$ssize ##first sample sizes to reach desired power for each proportion of ##non-differentially expressed genes ts$power ##calculated power for each sample size ts$crit.vals ##calculated critical value for each sample size
See also
ssize.twoSampVary, ssize.oneSamp, ssize.oneSampVary, ssize.F, ssize.Fvary
Note
Powers calculated to be 0 may be negligibly conservative. Critical values calculated as NA are values >20. Running this function with the side option of "lower" will possibly result in multiple warnings. Calculating the probability that an observation is less than the negative critical value under a t-distribution with non-centrality parameter delta/sigma (see argument section above) and the appropriate degrees of freedom is a calculation that is performed many times while the function runs. When the difference between the critical value and delta/sigma is large, this probability is virtually zero. This happens repeatedly while the function optimize finds the appropriate critical value for each sample size. Because of this, the function pt outputs a value <1e-8 in addition to a warning of full precision not achieved. This has no impact on the accuracy of the resulting calculations of sample size.
Author
Megan Orr megan.orr@ndsu.edu, Peng Liu pliu@iastate.edu
References
Liu, Peng and J. T. Gene Hwang. 2007. Quick calculation for sample size while controlling false discovery rate with application to microarray analysis. Bioinformatics 23(6): 739-746.
ssize.twoSampVary
Sample Size Calculations for Two-Sample Microarray Experiments with Differing Mean Expressions and Standard Deviations A...
CRAN · 1.3 · ssize.fdr/man/ssize.twoSampVary.Rd · 2026-05-07

Calculates appropriate sample sizes for two-sample microarray experiments in which the differences between mean treatment expression levels (delta.g for gene g) as well as standard deviations vary among genes. Sample sizes are determined based on a desired power, a controlled false discovery rate, and user-specified proportions of non-differentially expressed genes. A graph of power versus sample size is created.

Aliases
ssize.twoSampVary
Usage
ssize.twoSampVary(deltaMean, deltaSE, a, b, fdr = 0.05, power = 0.8, pi0 = 0.95, maxN = 35, side = "two-sided", cex.title=1.15, cex.legend=1)
Arguments
deltaMean
location (mean) parameter of normal distribution followed by each delta.g
deltaSE
scale (standard deviation) parameter of normal distribution followed by each delta.g
a
shape parameter of inverse gamma distribution followed by variances of genes
b
scale parameter of inverse gamma distribution followed by variances of genes
fdr
the false discovery rate to be controlled
power
the desired power to be achieved
pi0
a vector (or scalar) of proportions of non-differentially expressed genes
maxN
the maximum sample size used for power calculations
side
options are "two-sided", "upper", or "lower"
cex.title
controls size of chart titles
cex.legend
controls size of chart legend
Details
Each delta.g is assumed to follow a Normal distribution with mean specified by deltaMean and standard deviation specified by deltaSE. The variances among genes are assumed to follow an Inverse Gamma distribution with shape parameter a and scale parameter b. If a vector is input for pi0, sample size calculations are performed for each proportion.
Value
ssizesample sizes (for each treatment) at which desired power is first reached powerpower calculations with corresponding sample sizes crit.valscritical value calculations with corresponding sample sizes
Examples
##See Figure 3.(a) of Liu & Hwang (2007) dm<-2; ds<-1 ##the delta.g's follow a Normal(2,1) distribution alph<-3; beta<-1 ##the variances of genes follow an Inverse Gamma(a,b) distribution a2<-0.05 ##false discovery rate to be controlled pwr2<-0.8 ##desired power p0<-c(0.90,0.95,0.995) ##proportions of non-differentially expressed genes N1<-35 ##maximum sample size to be used in calculations tsv<-ssize.twoSampVary(deltaMean=dm,deltaSE=ds,a=alph,b=beta,fdr=a2,power=pwr2,pi0=p0, maxN=N1,side="two-sided") tsv$ssize ##first sample size(s) to reach desired power tsv$power ##calculated power for each sample size tsv$crit.vals ##calculated critical value for each sample size
See also
ssize.twoSampVary, ssize.oneSamp, ssize.oneSampVary, ssize.F, ssize.Fvary
Note
Numerical integration used in calculations performed by the function integrate, which uses adaptive quadrature of functions. Powers calculated to be 0 may be negligibly conservative. Critical values calculated as NA are values >20. Running this function may result in many warnings. Probabilities under different t-distributions with non-zero non-centrality parameters are calculated many times while the function runs. If these probabilities are virtually zero, the function pt outputs a value <1e-8 and outputs a warning of full precision not achieved. These values have no impact on the accuracy of the resulting calculations.
Author
Megan Orr megan.orr@ndsu.edu, Peng Liu pliu@iastate.edu
References
Liu, Peng and J. T. Gene Hwang. 2007. Quick calculation for sample size while controlling false discovery rate with application to microarray analysis. Bioinformatics 23(6): 739-746.

버전 이력

RepositoryVersionPublishedFirst seenLast seenDocs
CRAN1.32026-05-292026-05-30

보안

표시할 OSV 데이터가 없습니다.

문헌 신호

표시할 OpenAlex 데이터가 없습니다.