Hi Everyone!
I have a dataset of daily closing price of stocks for 2020. 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?
Continuous interaction termI am working on understanding youth unemployment and use four main independent variables in my analy…
command to check for overlapping interval?Hello everyone, I'd like to ask for your help in the following issue. I'm using individual data an…
inquire about rowtotal Code: gen s1 = x1+x2+x3+x4 replace s1 = 0 if s1 == . egen s2 = rowtotal(x*) assert s1==s2 Why it's …
Inquire about merge commandHi, I need to merge 3 files. And everytime I need to drop _merge after merge command. Is this the us…
looping over data filesHello Users, I have data of banks by id numbers. What I want to do is: (1) to merge 4 tables of one …
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate returns for specific timeframes?
Post a Comment