Dear all,
I am using the command xtrifreg to perform unconditional quantile regression to identify gender gaps at the mean and extreme levels of the dependent variable. My dataset is in long format, I have multiple observations for each individual, and individual-subject uniquely identifies observations.
I run seperate models for each subject and, therefore, I use xtrifreg in a loop which repeats it for 10 subjects (=j) and 6 grades (g). The fixed effects are at the school level, and the standard errors are cluster-robust (by default).
I use the following code to perform this:
The regression performs fine in most cases, but in some cases I get omitted coefficients and standard errors. Do you know why that might be? Could it be because the values are too small?
In addition, I would like to plot the coefficients instead of showing them in a table but I could not find a suitable command. Ideally, I would like to have one graph for each subject and each graph to plot the coefficients across quantiles for each grade (i.e. 6 lines in one graph, 10 graphs in total). I would be also keen to use deciles instead of quantiles, if the omitted coefficient problem is resolved.
I hope my explanation is clear.
Thank you so much! Your help will be appreciated a lot.
I am using the command xtrifreg to perform unconditional quantile regression to identify gender gaps at the mean and extreme levels of the dependent variable. My dataset is in long format, I have multiple observations for each individual, and individual-subject uniquely identifies observations.
I run seperate models for each subject and, therefore, I use xtrifreg in a loop which repeats it for 10 subjects (=j) and 6 grades (g). The fixed effects are at the school level, and the standard errors are cluster-robust (by default).
I use the following code to perform this:
Code:
forv j= 1/10 { forv i=25(25)75 { forv g = 1/6 { xtrifreg diff female $controls if sub==`j' & agrade==`g', fe i(ssid) q(`i') } } }
In addition, I would like to plot the coefficients instead of showing them in a table but I could not find a suitable command. Ideally, I would like to have one graph for each subject and each graph to plot the coefficients across quantiles for each grade (i.e. 6 lines in one graph, 10 graphs in total). I would be also keen to use deciles instead of quantiles, if the omitted coefficient problem is resolved.
I hope my explanation is clear.
Thank you so much! Your help will be appreciated a lot.
Comment