single_scenario_simulation: Simulate single scenario

Description Usage Arguments Value Notes Warning See Also Examples

Description

Simulates scenario with specified number of samples in treatment and control groups, specified number of features OR effect size OR mean, a correlation structure between features, method used for analysis, p value adjustment used in analysis, and the number of repetitions that should be simulated for this scenario.

Usage

1
2
3
4
single_scenario_simulation(num_samples_trt = NULL,
  num_samples_control = NULL, num_genes = NULL, means = NULL,
  delta = NULL, cor_matrix = NULL, num_reps = 1000, method = NULL,
  p_adjust = NULL)

Arguments

num_samples_trt

A number; specifies how many samples in group exhibiting effects.

num_samples_control

A number; specifies how many samples in groups without effects.

num_genes

A number; specifies how many features are being analyzed in this scenario.

means

A vector which contains the mean for each individual feature.

delta

An effect_size object containing the observed effect for each feature.

cor_matrix

A matrix which specifies the correlation structure amongst all features.

num_reps

A number that describes how many replications of each scenario there will be.

method

choose between "ofaat", "mv_glm", "lasso"

p_adjust

Used for the internal implementation of p.adjust; takes the same arguments

Value

A list containing a summary table of overall simulation results, an individual gene summary result table (with specified effect size and proportion), and the total number of repetitions that the simulation carried out for this scenario.

Notes

One of num_samples_trt or num_samples_control must be specified. One of num_genes, means, or delta must be specified. Method must be specified.

Warning

global_alpha must be specified with set.alpha(alpha) for simulation to run to completion.

See Also

analyze for details on method parameter

p.adjust for p value adjustments

Examples

1
single_scenario_simulation(num_samples_trt = 80, num_samples_control= 95, num_genes= 6, method="ofaat")

emartchenko/mvsimstudy documentation built on May 24, 2019, 5:04 a.m.