Skip to contents

Check the configuration of the model contained in the config table

Usage

check_config_table(config_table)

Arguments

config_table

A tibble or data.frame with one column named 'dependent', containing the LHS (Y variables) and one named 'independent' containing the RHS (x variables separated by + and - ).

Value

A tibble that gives the order of the modules to be run.

Examples

config_table_small <- dplyr::tibble(
  type = c("d","d","n"),
  dependent = c("JL", "TOTS", "B"),
  independent = c("TOTS - CP - CO - J - A", "YF + B", "CP + J")
)
osem:::check_config_table(config_table_small)
#> # A tibble: 3 × 5
#>   type  index dependent independent            order
#>   <chr> <int> <chr>     <chr>                  <int>
#> 1 n         3 B         CP + J                     1
#> 2 d         2 TOTS      YF + B                     2
#> 3 d         1 JL        TOTS - CP - CO - J - A     3