Hi everyone,
I am new here and I have a problem I have been trying to solve for a while without success.
Is it possible to perform a two-way graph [lfitci] with slopes and ci's for multiple groups (e.g., countries) in the same "graph window" while simultaneously controlling for additional variables (which are included in the equation but not displayed in the graphs)? As soon as I add additional variables, Stata tells me that I have exceeded the maximum number of variables.
Or is it necessary to switch to another strategy here, for instance by performing regressions with controls in multiple groups and then use another command like margins plot?
Here is an example of a code that is working for this, but without controls:
twoway lfitci depvar indepvar, by(cntry)
All the best,
Joakim
I am new here and I have a problem I have been trying to solve for a while without success.
Is it possible to perform a two-way graph [lfitci] with slopes and ci's for multiple groups (e.g., countries) in the same "graph window" while simultaneously controlling for additional variables (which are included in the equation but not displayed in the graphs)? As soon as I add additional variables, Stata tells me that I have exceeded the maximum number of variables.
Or is it necessary to switch to another strategy here, for instance by performing regressions with controls in multiple groups and then use another command like margins plot?
Here is an example of a code that is working for this, but without controls:
twoway lfitci depvar indepvar, by(cntry)
All the best,
Joakim
Comment