Hi, I am attempting to create a new variable RAROAit = ROAit / SD(ROA)ip for an Unbalanced Panel dataset, where i is the panel id variable, t is the time variable, and SD is the standard deviation of the variable ROA. SD is calculated based on observations for the period p defined as t to t-2. How do I generate this variable RAROA efficiently in STATA, given the definition of p?. I'm new to STATA. Can anyone assist me?
-
Login or Register
- Log in with
Comment