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
How to specifiy dummy variables/ exporting multiregression to word document?Array So I'm running a multiregression on the effect that age plays on duration of unemployment. …
How to drop year observations from a variableI am using V-dem version 6. In the year variable, observations begin from 1789. I want to use 'drop'…
Ordered Probit PostestimationDear all Stata users, I have been trying to do postestimation for a ordered probit model for each o…
Interpreting the r and adjusted r square value in an arima modelHello, i have been working on some time series data for the last couple of days which has required t…
Present 3 regression models in a single tableI have done three regressions in STATA. All variables are same, but in the 'country_name' variable (…
Subscribe to:
Post Comments (Atom)
0 Response to Help! Merge Compustat Security Daily and Worldscope Annual
Post a Comment