Description Usage Arguments Value Examples
View source: R/make_example_data.R
Function to simulate an example multi-view multi-group data set according to the generative model of MOFA2.
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"
)
|
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.
1 2 | # Generate a simulated data set
MOFAexample <- make_example_data()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.