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
georoute troubleshootingI'm trying to generate travel distances using georoute in Stata but getting different error messages…
Marginal effects using dydx for panel data regression using country fixed effects and a time-invariant variable in the interaction term.Dear Statalisters, I am new to the forum and I have tried to find a solution for my problem. I coul…
Drop all observations featuring a particular value of a variable if any one observation with that value meets a separate criteriaHello all, I've seen the helpful responses here and since I can't quite seem to find the right solu…
How to do a DiD-analysis in stata with multiple pre- and post-observations per firm and different treatment times per firm?Hi all, I am studying the effects of stock splits on the liquidity of a firm. In my sample I have c…
Problems merging dataHi all, I have been trying to merge my data using key variables but error I keep getting is : " key…
Subscribe to:
Post Comments (Atom)
0 Response to Referring to the group variable in ml evaluator
Post a Comment