Dear,
I hope you are all in good health. I'm estimating the amount of sorting across schools by estimating student characteristics on teacher evaluations. I am comparing different estimations. First estimate for the entire population and afterwards I want to do the regression for each district. Using the by command for maximum likelihood results in the following error: ml may not be combined with by. I read online that you can add the specification group to the model, but I don't really know how to do this.
Should I best specify a new model to use ML per district? Or is there a more easy way to do so? I will attach a screenshot of my code. (I'm sorry I realize this is not the perfect formatting, but I'm a bit in a time pickle and I think it would take me some time to figure out how to correctly post code)
Array
Thank you for your help!
All the best,
Lilli
Related Posts with Maximum likelihood estimation with by(sort) command
Building time windows from years, starting from most recent yearDear all, I have some panel data containing countries and years. I need to build three-year time wi…
Removing duplicate words from a string variableI have a variable with a row of ICD codes. Some of them are repeated One registration looks like thi…
Not recounting new CEO roleIn my dataset, a director can have different roles each year. In my example, the director gets a new…
Do I add mediator and control variables in Wooldridge test for autocorrelation on Stata?Hi everyone, I am conducting the Wooldridge test for serial autocorrelation for my mediation analysi…
Exporting variable names, labels, and value codes for labelsHi all, I am trying to prepare a codebook document that provides details on all variables (includin…
Subscribe to:
Post Comments (Atom)
0 Response to Maximum likelihood estimation with by(sort) command
Post a Comment