federicovegetti / 2stageML

Functions for 2 step multilevel regressions
0 stars 0 forks source link

plot_l1() function for producing automatic coefficient plots #4

Open cmbosancianu opened 3 years ago

cmbosancianu commented 3 years ago

Function would end up taking the output from l1_reg(), and use it for generating a coefficient plot.

The most challenging part of this is to figure out how to do faceting, in case the number of groups is very large, e.g. 80 or over. In this case, an automatic variable should be created, which splits the rows in k equal chunks, and this variable is used for faceting.

cmbosancianu commented 3 years ago

Still thinking what the best way to tackle this function is:

The challenge with this second one is that it has to take in all arguments that l1_reg() needs, as well as some additional arguments that refer only to the plot. That makes it a bit cumbersome, even though sensible defaults are currently selected.