reconstruct_formulas function

Reconstruct model formulas from results tibbles

Reconstruct model formulas from results tibbles

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.

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.

Returns

list of model formulas.

Author(s)

Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk

  • Maintainer: Ludvig Renbo Olsen
  • License: MIT + file LICENSE
  • Last published: 2025-03-07