I will illustrate my question with an example.
Say I have a variable called Temperature for 100 years in a country X.
I would like to create a variable Temperature_Record such that for year n Temperature_Record=max(Temperature(year 1:year n))
That is I want it to record the maximum temperature reached as of year n. This will give me a variable that will only increase over time naturally.
In addition I would like to do that in a panel of countries if possible.
Thoughts very much appreciated. I am new to STATA.
Thank you
Related Posts with Record-to-date value in a time series or panel
Type I (sequential) regressionHello, I would like to run a Type I (sequential) regression model in Stata. However, I cannot find t…
Why different FE and RE results for the same model ? One uses eststoHi All, I'm using STATA 15. My problem is that I see different results when I run the same random-…
Markstat - pdf headers and syntax highlightingHi all, Coming from an R/python background, I have been enjoying playing with German Rodriguez exce…
Fixed Effects and LSDVBelow u can find my results from different regressions. Shouldn't my results using the fixed effects…
How to report 95% CI of random-intercept in mixed effects model?Hi All, I'm using STATA 15. My question: Would someone know how to report the 95% confidence inter…
Subscribe to:
Post Comments (Atom)
0 Response to Record-to-date value in a time series or panel
Post a Comment