make_example_data {MOFA2} | R Documentation |
Function to simulate an example multi-view multi-group data set according to the generative model of MOFA2.
make_example_data( n_views = 3, n_features = 100, n_samples = 50, n_groups = 1, n_factors = 5, likelihood = "gaussian" )
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 |
Returns an untrained MOFA
object containing simulated data as training data.
# Generate a simulated data set MOFAexample <- make_example_data()