make_example_data {MOFA2} | R Documentation

## Simulate a data set using the generative model of MOFA

### Description

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

### Usage

    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

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

[Package MOFA2 version 1.0.1 Index]