make_example_data: Simulate a data set using the generative model of MOFA

Description Usage Arguments Value Examples

View source: R/make_example_data.R

Description

Function to simulate an example multi-view multi-group data set according to the generative model of MOFA2.

Usage

1
2
3
4
5
6
7
8
make_example_data(
  n_views = 3,
  n_features = 100,
  n_samples = 50,
  n_groups = 1,
  n_factors = 5,
  likelihood = "gaussian"
)

Arguments

n_views

number of views

n_features

number of features in each view

n_samples

number of samples in each group

n_groups

number of groups

n_factors

number of factors

likelihood

likelihood for each view, one of "gaussian" (default), "bernoulli", "poisson", or a character vector of length n_views

Value

Returns an untrained MOFA object containing simulated data as training data.

Examples

1
2
# Generate a simulated data set
MOFAexample <- make_example_data()

MOFA2 documentation built on Nov. 8, 2020, 7:28 p.m.