Description Usage Arguments Details Value Examples
Function to obtain the default model options.
1 | getDefaultModelOptions(object)
|
object |
an untrained |
The model options are the following:
likelihood: character vector with data likelihoods per view: 'gaussian' for continuous data, 'bernoulli' for binary data and 'poisson' for count data. By default, they are guessed internally.
numFactors: numeric value indicating the initial number of factors. If you want to learn the number of factors automatically we recommend setting this to a large value, default is 25.
sparsity: logical indicating whether to use sparsity. This is always recommended, as it will make the loadings more interpretable. Default is TRUE.
Returns a list with the default model options, which have to be passed as
an argument to prepareMOFA
1 2 3 4 5 6 7 | # load data
data("CLL_data", package = "MOFAdata")
#create a MOFAmodel object
MOFAobject <- createMOFAobject(CLL_data)
# set model options
ModelOptions <- getDefaultModelOptions(MOFAobject)
ModelOptions
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.