get_interpolated_factors {MOFA2} | R Documentation

## Get interpolated factor values

### Description

Extract the interpolated factor values

### Usage

    get_interpolated_factors(object, as.data.frame = FALSE, only_mean = FALSE)

### Arguments

`object` | a `MOFA` object
`as.data.frame` | logical indicating whether to return data as a data.frame
`only_mean` | logical indicating whether include only mean or also uncertainties

### Details

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.

### Value

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).

[Package MOFA2 version 1.2.2 Index]