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
Related Posts with Minimum value of last 3 observations
Panel specific ar vs common arHello everyone, what are the tests/ criteria that specify which type of options should I choose when…
How can I correctly remove the missing values within group in Stata?I have a small data set laid out in longitudinal format, * Example generated by -dataex-. clear inpu…
Remove blank lines from string colvectorIf I have a string colvector in Mata, how can I create a new string colvector that removes rows with…
Double selection lassoDear statalist, I have attempted a logit regression and now I need to attempt a double selection la…
Combining two time variables (Year & Period of year (month)) into one time variable which could be used as tsset for graphsHello Stata community; I have this dataset: Code: * Example generated by -dataex-. To install: ssc…
Subscribe to:
Post Comments (Atom)
0 Response to Minimum value of last 3 observations
Post a Comment