Greetings,
I am very new in the world of STATA.
Today I am working on a dataset within STATA where I need to generate a new variable, this new variable based on a formula calculated using other variables from the same dataset.
For clarity I have posted a pic of both how the data looks like both in STATA and EXCEL.
In the new variable 'min_last_3', the minimum value for the 3 previous ratings for that horse will be calculated
Thank you
Hans