Dear Statalister,
I would like to ask how to merge Compustat security daily data and Worldscope annual data together? Because Worldscope do not include fyear, so I not sure how to merge them together. I need to use prccd in Compustat to calculate the realised return and Tobin's q, but I also need 'Accounting Standard Followed' in Worldscope.
How can I merge the Worldscope Fundamental Annual, Worldscope Stock Data and Compustat Security Daily dataset together? Because Compustat is daily data and Worldscope is annual data, but I want my dataset to be annual data. Can I ask how to merge these 3 dataset into annual data, please? Thank you.
STATA Code:
gen year=yofd(datadate)
format year %ty
merge m:m isin using Document1.dta
How can I collapse daily data into annual data?
STATA Code:
collapse (mean) average_price=PRCCD, by(ISIN)
or
bysort isin datadate: egen ave=mean(prccd)
Help would very appreciated.
Kind regards,
Tiantian Peng
Related Posts with Help! Merge Compustat Security Daily and Worldscope Annual
chi2 testGood morning to everybody, I 've a dubt Question1 MALE FEMALE OTHER TOT 1 64 119 7 190 2 28 9…
rolling + averageHello.. I have a difficulty in calculating with stata the following formula. yt= bo + xt with rolli…
Interpreting results using gologit2 and autofit features for Partial Proportional Odds ModelHi I am using a partial proportional odds model (ordered) because the Brandt test showed that it vio…
Merging Two Datasets on a Common Variable Throwing ErrorMy data is panel data and I am trying to merge these two data sets on common variable "Ticker" and I…
Model prediction for logistic regression with an interaction termHello, I've built a logistic regression, but I am having difficulty interpreting/rationalising the …
Subscribe to:
Post Comments (Atom)
0 Response to Help! Merge Compustat Security Daily and Worldscope Annual
Post a Comment