Description Usage Arguments Details Value Author(s)
calc_power
calculates the power species and pathways.
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)
|
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 |
Returning a data frame containing power, FPR and Beta
A data frame with power and beta.
Liu Cao
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.