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?
Transform a table: making options as variableDear all, I have this type of table: ID Date Culture ID Culture type Sample result 1 1 Jan 202…
optimization with STATAI am unfamiliar with STATA programming, and I am trying to program some very rudimentary optimizatio…
Assuming ICCHello everyone, This is my first post here. I need icc for power calculation. I have outcome variabl…
ivreg2 - despite using partial option I get full rank errorIn a multiple instrument regression using ivreg2 with gmm2s option I'm using partial. Despite using …
generate t-statHow can we modify this code to generate t-stat of the means instead of standard deviation (sd), and …
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate returns for specific timeframes?
Post a Comment