compare_results: Compare results of multiple spflow_models

View source: R/class_spflow_model.R

compare_resultsR Documentation

Compare results of multiple spflow_models

Description

Compare results of multiple spflow_models

Usage

compare_results(
  model_list,
  global_vars = c("model_coherence", "R2_corr", "ll", "AIC", "N_sample"),
  sig_levels = c(`***` = 0.001, `**` = 0.01, `*` = 0.05, `'` = 0.1),
  digits = 3,
  add_dispersion = FALSE
)

Arguments

model_list

a list of models that should be compared (only spflow_model-class() is used)

global_vars

a character indicating which statistics should be reported

sig_levels

a named numeric indicating the codification of significance levels

digits

a numeric indicating to what decimal the results should be rounded

add_dispersion

a logical, if TRUE the standard errors are added in parenthesis

Value

a data.frame

Author(s)

Lukas Dargel

Examples


res_ge  <- spflow(y9 ~ . + P_(DISTANCE), multi_net_usa_ge, "ge_ge")
res_usa <- spflow(y9 ~ . + P_(DISTANCE), multi_net_usa_ge, "usa_usa")
compare_results(list("GE" = res_ge, "US" = res_usa),
                global_vars = c("N_sample", "R2_corr", "model_coherence"))

LukeCe/spflow documentation built on Nov. 11, 2023, 8:20 p.m.