reconstruct_formulas: Reconstruct model formulas from results tibbles

View source: R/reconstruct_formulas.R

reconstruct_formulasR Documentation

Reconstruct model formulas from results tibbles

Description

\Sexpr[results=rd, stage=render]{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)

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


cvms documentation built on July 9, 2023, 6:56 p.m.