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?
Area under ROC and clogit?Is it possible -- or appropriate -- to calculate area under ROC when running a conditional logit? If…
A 2-stage crossover design with repeated measurements : threeway-interaction?Dear STATA list user, I am currently working with a 2-stage crossover design testing a new innovatio…
tabm varlist output takes the variable labelsHi, When I execute Code: tabm variables , the outputs take the variable labels instead of variab…
Linear mixed effects with unbalanced, survey-weighted, longitudinal dataHello, I have panel household survey data that is a longitudinal study of individuals, so an unbalan…
Year IndexHi, I have a panel data from 2003-2018. I have taken the average of (Top Marginal Income Tax from 2…
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate returns for specific timeframes?
Post a Comment