makeExampleData {MOFA} | R Documentation

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

### Description

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

### Usage

    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

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

[Package MOFA version 1.6.2 Index]