postMultiPower: Power study for different sample sizes.

View source: R/MultiOmicsPower14.R

postMultiPowerR Documentation

Power study for different sample sizes.

Description

When the optimal sample size estimated by MultiPower exceeds the available budget, an alterative solution is to decrease such sample size at the cost of removing features with low effect size (magnitude of change). This function answer the question of to which effect size users must restrict themselves for a given maximum sample size. Pilot multi-omic data sets are needed to perform this analysis.

Usage

postMultiPower(optResults, max.size = 5, omicCol = NULL)

Arguments

optResults

R object containing the results of MultiPower function.

max.size

Maximum sample size allowed by the user. It will be used to determine the effect size that can be detected (by default, 5).

omicCol

The color that will be used to plot each omic. It must be a vector with length equal to the number of omics. If it is NULL (default), default colors are used.

Value

This function returns a list with the following elements:

SampleSize

Matrix containing the optimal sample size for each omic data type (in columns) and for different cutoffs of Cohen’s d (in rows).

Power

Matrix containing the statistical power at the optimal sample size for each omic data type (in columns) and for different cutoffs of Cohen’s d (in rows).

NumFeat

Matrix containing the number of remaining features for each omic data type (in columns) and for different cutoffs of Cohen’s d (in rows).

d

Values of Cohen’s d used as cutoffs to remove low effect size features.

In addition, it also returns two plots that summarize these results: first, the number of replicates (sample size) for each of the tested Cohen's d values; second, the statistical power for each omic at the previously obtained optimal sample size and at the current sample size set by the user.

Author(s)

Sonia Tarazona


ConesaLab/MultiPower documentation built on April 16, 2023, 11:39 a.m.