makeSimulatedFraserDataSet: Create an simulated example data set for FRASER

Description Usage Arguments Value Examples

View source: R/makeSimulatedDataset.R

Description

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

Usage

1
2
3
4
5
6
7
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

1
2
3
4
5
6
7
# 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

FRASER documentation built on Feb. 3, 2021, 2:01 a.m.