calc_power: Power calculation for a given study design

Description Usage Arguments Details Value Author(s)

View source: R/power.R

Description

calc_power calculates the power species and pathways.

Usage

1
2
3
calc_power(N_sample = 200, N_covariate = 8, N_feature = 300,
  N_repeat = 1, conti_prop = 0.5, pos_prop = 0.2, contin = "continuous",
  increment = 0.005, q_cutoff = 0.05, quartile_sd, v_mean_transform)

Arguments

N_sample

Number of subjects in the study. Integer.

N_covariate

Number of covariates in the study. Integer.

N_feature

Number of expected species or pathways. Integer.

N_repeat

Number of repeat measurements for each data set. Integer.

conti_prop

The proportion of continuous covariates. A number in [0,1]. Default is 0.5.

pos_prop

The proportion of species or pathways that are truely correlated with the covariate we are interested in. A number in [0,1]. Default is 0.2.

contin

The type of covariate we are interested. The type includeds "continous", "discrete" and "inter" (interaction). Strint. Default is "continuous".

increment

A small number to adjust the smoothness of the power curve. The smaller, the more smooth. Default is 0.005.

q_cutoff

The threshold for q value (p value after BH adjustment). A number in (0,1). Default is 0.05.

quartile_sd

Standard deviation quartiles

v_mean_transform

Transformed mean distribution

Details

Returning a data frame containing power, FPR and Beta

Value

A data frame with power and beta.

Author(s)

Liu Cao


xyomics/bugpower documentation built on May 20, 2019, 5:08 p.m.