Hi Everyone!
I have a dataset of daily closing price of stocks for 2020. Since I am interested in calculation of returns over specific periods (Covid-19 Market crash). For example, I want to calculate the returns between 20 Jan 2020 and 3 Jan 2020.
I have tried different approaches but got no result. I just want to know how I can perform this operation while adding the dates condition and results will be shown in the same row.
Best regards,
Peter Klein
Related Posts with how to calculate returns for specific timeframes?
tsline command with maximum observationsDear Stata community, I am running the tsline command for a graph of average male unemployment by c…
Multiple conditions within loopHello, Stata Users! My question might seem too simple, but I am struggling with generating new vari…
Generating a change score variableHi Statalist, I am trying to generate a change score that captures changes in labour force particip…
-catplot-: Suppress automatic title under x-axis?Dear all, I am creating a graph much like this: Code: sysuse auto, clear catplot rep78, over(forei…
random fixed effect model of panel dataHi, I am trying to anlysis an (unbalanced) panel data which covers around 6000 companies (79000 fri…
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate returns for specific timeframes?
Post a Comment