BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
AliceF0001
Calcite | Level 5

I am trying to locate the data "divpremmonth_jaz_20210111.sas" for a University study, but I can't find it available. Specifically, I am trying to replicate the Investor Sentiment Index following Baker and Wurgler (2004), where they say they got the data for value-weighted dividend premium from SAS program divpremmonth_jaz_20210111.sas. Can anyone help me?

1 ACCEPTED SOLUTION

Accepted Solutions
mkeintz
PROC Star

It looks to me that the program may have been developed by Baker/Wurgler, but was not published.

 

Question: In their papers, do they publish an algorithm, or even a set of equations somewhere?  It might not be hard to implement, given that the CRSP/Compustat merged dataset to which they refer has a well-known data structure.

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------

View solution in original post

6 REPLIES 6
ballardw
Super User

I would suggest contacting the source where you heard of that file, or the author of any paper that might might reference it.

 

Since that file name contains what might be partial date information there might be other versions with other date portions in the name somewhere but the only reference I find is in a spread sheet at https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://pages.stern.nyu.edu/~jwurg... which apparently has a "conversion" to STATA for a different period of data.

mkeintz
PROC Star

I have looked at a Baker/Wurgler paper, Investor Sentiment and the Cross-Section of Stock Returns

(published in 2006, not 2004).  I did find a 2004 paper, by Baker, Ruback, and Wurgler (Behavioral Corporate Finance: A Survey). And another Baker/Wurgler in 2004 (Market liquidity as a sentiment indicator),  None of them mentions this, or any other, SAS program.

 

Please provide a link to the source where you saw the program name mentioned.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
AliceF0001
Calcite | Level 5

This is the excel  that I got from NYU data (https://pages.stern.nyu.edu/~jwurgler/data/). In row 26 of the README sheet, you can see they say they got the data from SAS program.

Tom
Super User Tom
Super User

@AliceF0001 wrote:

This is the excel  that I got from NYU data (https://pages.stern.nyu.edu/~jwurgler/data/). In row 26 of the README sheet, you can see they say they got the data from SAS program.


Why don't you ask him?  His email is listed on that site.

https://pages.stern.nyu.edu/~jwurgler/

 

mkeintz
PROC Star

It looks to me that the program may have been developed by Baker/Wurgler, but was not published.

 

Question: In their papers, do they publish an algorithm, or even a set of equations somewhere?  It might not be hard to implement, given that the CRSP/Compustat merged dataset to which they refer has a well-known data structure.

 

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
Ksharp
Super User

It looks like the data you are looking for is already included the Excel file you posted(see the  'DATA' sheet).

You can import it easily by proc import:

 

proc import datafile='C:\Users\xiakeshan\Downloads\SENTIMENT.xlsx' out=want dbms=xlsx replace;
sheet='DATA';
run;

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 1165 views
  • 4 likes
  • 5 in conversation