I have a question concerning the average return of a portfolio.
I created 2 groups of stocks, one with sin stocks (alcohol, tobacco and gambling) and one with comperables.
For all the individual firms I have their bid, ask, open price and volume on a daily basis from 1965-2018 (or the period they exist). I would like to generate weighted average monthly returns for the sin group and the comparable group. How can I generate this in Stata?
I am replicating the paper: The price of sin: The effects of social norms on markets by Hong and Kacperczyk.
Related Posts with Creating weighted average return of portfolio
Question about meologit Hello! I attempting to do a mixed model ordinal logistic regression with level 2 and level 1 varia…
Batch mode: "The do file was interrupted. Would you like the batch job to continue?"In reply to Jason A. Thompson's question from 2007-11-20: After upgrading to Stata 10, batch job…
Balance tests in a loop?Hello. I am currently trying to run balance tests in a dataset with respondents from 8 countries. T…
Bug: encoding ID string with tens of millions of unique IDsI have found a bug in Stata 17 MP, where my dataset has hundreds of millions of observations and ten…
loop in parallel with tokenize, comma as delimiterI'm currently using Stata for data management. Inspired by Nick Cox' (2021) paper "Speaking Stata: L…
Subscribe to:
Post Comments (Atom)
0 Response to Creating weighted average return of portfolio
Post a Comment