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
heteroscedasticity test white vs BPHello,
I was checking my model for heteroscedasticity, and weird enough, I found a different outcom…
Weighting of Indian Demographic Health Survey (2015-16) dataUsing the Indian DHS 2015-16 data for my analysis, I have merged three files together (1) Person fil…
Regression by yearHi all,
I have a dataset that includes a list of information on companies from 2000-2014.
I am loo…
Mean Centering Variable for InteractioneffectDear Statalists
I'm in the final phase of my research and I want to look into the interaction effec…
Cumulative incidence estimation in the presence of competing risksGood evening,
In the last two days I'm dealing with "Cumulative incidence estimation in the presenc…
Subscribe to:
Post Comments (Atom)
0 Response to Help! Merge Compustat Security Daily and Worldscope Annual
Post a Comment