Learn R Programming

cvms (version 1.7.0)

reconstruct_formulas: Reconstruct model formulas from results tibbles

Description

lifecycle::badge("maturing")

In the (cross-)validation results from functions like cross_validate(), the model formulas have been split into the columns Dependent, Fixed and Random. Quickly reconstruct the model formulas from these columns.

Usage

reconstruct_formulas(results, topn = NULL)

Value

list of model formulas.

Arguments

results

data.frame with results from cross_validate() or validate(). (tbl)

Must contain at least the columns "Dependent" and "Fixed". For random effects, the "Random" column should be included.

topn

Number of top rows to return. Simply applies head() to the results tibble.

Author

Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk