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
recoding a new generated variableHi everyone, A sample of my data looks as follows (my current data ). As you can see, the person 1's…
Attributing survey propensity scores to a general populationHello. I'm conducting a survey where I have a primary dependent variable (would you do x or y), and …
Help: Sequential Count in Between Two Variable ValuesHello everyone, I was hoping someone could help me. I am trying to create a variable that would cou…
Interpolating annual data to quarterlyHello, I have a data set that contains annual minimum wage numbers. The entire data set contains tw…
mibeta command and statistical outputDear Stata Community: I am trying to ascertain the following statistical outcomes, including R^2, F…
Subscribe to:
Post Comments (Atom)
0 Response to Referring to the group variable in ml evaluator
Post a Comment