INPower(MAFs, betas, pow, sample.size, signif.lvl, k, span=0.5, binary.outcome=TRUE, multi.stage.option=NULL, tgv=NULL)loess.
It specifies the fraction of SNPs that are used in local linear regression to obtain
the estimated number of loci at each effect size.
The default is set at 0.5, but we recommend the user to set it at a value depending on the total size of
the SNP set so that about 10-20 SNPs are used for local smoothing at each effect size.
The total size of the SNP set should be reasonably large (e.g. at least 20 and preferably more) for application of loess.esdist.summary and future.study.summary.
The sublist esdist.summary contains
the estimated number of loci (t.n.loci), the genetic variance explained by the estimated number
of loci (gve), and
the estimated number of loci at each different effect size (es.dist).
Note for linear regression, gve is expressed as a percentage of the total variance of the outcome,
since it assumed that outcome has been standardized.
Further, if an estimate of total genetic variance (TGV) is provided by the user, then the estimate for GVE
will be automatically expressed as a percentage of TGV.
The sublist future.study.summary contains the expected number of loci to be discovered in the future
study (e.discov), expected genetic variance explained (e.gve), and a table of probabilities
of discovering at least k loci for the diffferent values of k (prob.k).
Note that e.gve is defined similarly to gve.
loess fitting procedure, however, may include additional
SNPs with smaller effect sizes for local linear smoothing. The user is recommended to remove
SNPs that may seem clearly outliers compared to the rest in terms of their effect sizes. By default
the program currently removes all SNPs with power less than 0.1 percent from the analysis
to avoid undue influence of potentially outlying observations.
set.seed(123)
MAFs <- runif(50, min=0.05, max=0.5)
betas <- runif(50, min=-0.5, max=0.5)
pow <- runif(50, min=0.1, max=0.9)
sample.size <- 1000
signif.lvl <- 1e-4
k <- 20
INPower(MAFs, betas, pow, sample.size, signif.lvl, k)
Run the code above in your browser using DataLab