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
How to reproduce fracreg with gsemDear Statalisters, I have a question about how to reproduce the results of fracreg with the probit …
Odds ratio for more than two categorical variablesHi, everyone. Stata has a straightforward panel concerning odds ratio in a classic 2x2 table. Howeve…
interaction term in regressionHello everybody, I have a question regarding regression's (statistical) interpretation with an inte…
DYNARDL: Dynamic Autoregressif Detributed LagHello I have a question concerning Dynamic ARDL. I tried to follow the steps of applying dynamic ard…
Sensitivity Analysis for Causal Mediation with Interacted Independent VariableHello! I am conducting a causal mediation analysis in which treatment --> mediator --> outcome…
Subscribe to:
Post Comments (Atom)
0 Response to Maximum likelihood estimation with by(sort) command
Post a Comment