This function adds the added R-squared values of each motif model to the trajectory model.
Usage
add_features_r2(
traj_model,
sample_frac = 0.1,
additional = FALSE,
seed = 60427
)
Arguments
- traj_model
The trajectory model object.
- sample_frac
The fraction of samples to use for computing the r2 without each model. When NULL, all samples are used.
- additional
calculate also for additional features. Default is FALSE.
- seed
The seed to use for sampling the data. Default is 60427.
Value
The trajectory model object with the added R-squared values.