I have three different “regression lists” where I saved regressions for different countries. These regressions for the countries all have the same ind. variables, but the coefficients differ. At the moment I have three modelsumamry tables. One for each list. It would be nice to visualize the coefficent change in one table.
Something where the first column consists of the variable, like a normal modelsummary, but the second column splits this vaiable into the coefficiens of the “regression lists”. The columns then contiue with the coefficients of the countries.
Counry 1 Country 2 ...
Variable A
-(1) Coef Coef
-(2) Coef Coef
-(3) Coef Coef
Variable B
-(1) Coef Coef
-(2) Coef Coef
-(3) Coef Coef
The modelsummary as it is now looks like this:
reg_stud <- modelsummary(stud_ol$cleaned_reg_results_stud,
stars = TRUE,
coef_rename = c("constant", "A", "B", "C", "D", "E", "F"),
gof_map = c("adj.r.squared"),
title = 'Reduced Set',
notes = list("Std. Errors in parentheses", stud_ol$note_removed_countries_stud),
output = "gt")
stud_ol$cleaned_reg_results_stud is a list with regressions.
Is this possible in modelsummary? If it is possible, what do I need to do to accomplish this?
I tried to use the shape argument, but I failed.