makeExampleData: make an example multi-view data set for illustration of MOFA

Description Usage Arguments Value Examples

View source: R/makeExampleData.R

Description

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

Usage

1
2
makeExampleData(n_views = 3, n_features = 100, n_samples = 50,
  n_factors = 5, likelihood = "gaussian")

Arguments

n_views

number of views

n_features

number of features in each view

n_samples

number of samples

n_factors

number of factors

likelihood

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

Value

Returns an untrained MOFAmodel containing simulated data as training data.

Examples

1
2
3
# Generate a data set
MOFAexample <- makeExampleData()
str(MOFAexample)

bioFAM/MOFA documentation built on Oct. 3, 2020, 12:53 a.m.