According to the manual https://www.stata.com/manuals/rml.pdf, ml accepts a model option group(varname) that specifies the group variable. (for example, the id variable in panel data). I wonder how to refer to this group variable name in the user-defined ml evaluator. I searched the manual but find no answers.
I am currently specifying the group variable as a second dependent variable in the equation and referring to it in the evaluator using the global $ML_y2. It works, but If there is a easier way I would happily adopt.
Thanks!
Related Posts with Referring to the group variable in ml evaluator
Marginal effectDear researchers, I have an unbalanced data set for a period extending from 2000-2020. My dependent…
ivreg2 not runningProblem: When I attempt to run ivreg2 I receive the error message: "Error: must have ranktest versio…
Generate a table of R-squared values using a loop of regressionsDear all, I am trying to generate a table of R-squared from multiple regressions. Code: * Example…
xttest3 overall significanceHi guys, I have panel data with 2Ts and 498N. I need to test the overall significance of my fixed ef…
Any quick way to handle incorrect statistics for variables in panel data that do not change over timeAs shown in the panel data chart, there should be some errors for variables that do not change over …
Subscribe to:
Post Comments (Atom)
0 Response to Referring to the group variable in ml evaluator
Post a Comment