makeSimulatedFraserDataSet: Create an simulated example data set for FRASER

View source: R/makeSimulatedDataset.R

makeSimulatedFraserDataSetR Documentation

Create an simulated example data set for FRASER

Description

Simulates a data set based on random counts following a beta binomial (or Dirichlet-Multinomial) distribution.

Usage

makeSimulatedFraserDataSet(
  m = 100,
  j = 500,
  q = 10,
  distribution = c("BB", "DM"),
  ...
)

Arguments

m

Number of simulated samples

j

Number of simulated junctions

q

number of simulated latent variables.

distribution

Either "BB" for a beta-binomial simulation or "DM" for a dirichlet-multinomial simulation.

...

Further arguments used to construct the FraserDataSet.

Value

An FraserDataSet containing an example dataset based on simulated data

Examples

# A generic dataset
fds1 <- makeSimulatedFraserDataSet()
fds1

# A generic dataset with specificed sample size and injection method
fds2 <- makeSimulatedFraserDataSet(m=10, j=100, q=3)
fds2


c-mertes/FraseR documentation built on June 15, 2024, 3:29 a.m.