Description Usage Arguments Value Notes Warning See Also Examples

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.

1 2 3 4 |

`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 |

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.

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.

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

`analyze`

for details on method parameter

`p.adjust`

for p value adjustments

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.