reconstruct_formulas {cvms}R Documentation

Reconstruct model formulas from results tibbles

Description

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

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.

Value

list of model formulas.

Author(s)

Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk


[Package cvms version 1.6.1 Index]