get_interpolated_factors {MOFA2} | R Documentation |
Extract the interpolated factor values
get_interpolated_factors(object, as.data.frame = FALSE, only_mean = FALSE)
object |
a |
as.data.frame |
logical indicating whether to return data as a data.frame |
only_mean |
logical indicating whether include only mean or also uncertainties |
This can be used only if covariates are passed to the object upon creation, GP_factors is set to True and new covariates were passed for interpolation.
By default, a nested list containing for each group a list with a matrix with the interpolated factor values ("mean"),
their variance ("variance") and the values of the covariate at which interpolation took place ("new_values").
Alternatively, if as.data.frame
is TRUE
, returns a long-formatted data frame with columns containing the covariates
and (factor, group, mean and variance).