Hello, I would like to merge MSCI and Compustat data using the following code:
For MSCI data:
egen yrtic = concat (Ticker year)
For Compustat data:
egen yrtic = concat (tic fyear)
joinby yrtic using "Data_MSCI.dta"
however I get the following error: variable yrtic not found
r(111);
Can anyone explain how to make this work?
Related Posts with Joinby function for Ticker and Year
Concatenating string variables with missing valuesHi all! I've tried to follow the instructions from another post on this forum to concatenate variab…
LCA using gsem (not concave) and convergence not achievedHello Friends, I am conducting LCA using gsem. I have 6 binary indicator variables and 3725 partici…
Getting values from second to last loop of a -while- loopHi fellow Statalisters, I am using a -while- loop for a particular application, where I need to ret…
Finding observations that are strictly dominated: how do I eliminate multiple loopsI have a dataset that looks as follows. For each state, I know which individuals are accepted (acc =…
ereturn post a vector as a pseudovariable like e(sample)Dear Statalist, I would like to define an e-class program but have no idea how to -ereturn- a pseud…
Subscribe to:
Post Comments (Atom)
0 Response to Joinby function for Ticker and Year
Post a Comment