BLOG

Fama – MacBeth (1973) procedure: What, how and where | asreg in Stata

Fama and MacBeth (1973) procedure can be used in testing asset pricing models and other areas. In this post, my primary focus is on its use in testing asset pricing models. FMB in asset pricing models It is actually a three-step process. We would divide the time period into three parts. 1. The first step

Read More

Export correlation table to Word with stars and significance level using asdoc

The updated version of asdoc can now create a table of correlation with significance levels starred at different levels. The new version can be installed by typing the following line in Stata. Installation of the new version net install asdoc, from(http://fintechprofessor.com) replace An Example sysuse auto, clear asdoc pwcorr price mpg rep78 headroom trunk weight

Read More

asdoc abbreviates / truncates my variable names and labels | Word to Stata

Stephen Okiya has asked the following question I notice that the variable names are truncated in spite of using the option abb(100). Do you know why this is the case? Answer: asdoc uses the abbrev() function of Mata. For some reasons, the abbrev() function splits the following sentence in half, no matter which value we

Read More

Fama and MacBeth regression over 25 Portfolios using asreg in Stata

Antonio has asked the following question Dear Sir, I was wondering how to run a Fama and MacBeth regression over 25 Portfolios. In accordance with your code, the first variable needs to be the dependent variable while the following variables are considered as independent variables. Basically, I would like to calculate the risk premium of

Read More

asdoc Unicode issue | Stata to MS Word

For those who are not yet familiar with asdoc, asdoc can be downloaded from SSC and can be used with almost all Stata commands. Here is a short blog post that shows how asdoc can be used with any Stata command. You can also watch several YouTube videos that show the use of asdoc asdoc installation ssc install asdoc

Read More

asdoc – custom table title | MS Word | Stata

For those who are not yet familiar with asdoc, asdoc can be downloaded from SSC and can be used with almost all Stata commands. Here is a short blog post that shows how asdoc can be used with any Stata command. You can also watch several YouTube videos that show the use of asdoc asdoc

Read More

The Error option matrow() not allowed” when using asdoc with tabulate command

Ronald asked the following question: I am getting the error when using asdoc with tabulate command.option matrow() not allowedr(198); I asked Ronald to send his dataset for a closer look. Upon inspection, it turned out that Ronald was trying to tabulate values of a string variable, and asdoc had problem with that. As a temporary

Read More

Reporting odd ratios and Chi2 with asdoc

Richard Makurumidze has asked:It seems asdoc does not work with the chi (chi -square) and or (odds ratio) in logistic regression. Is this correct or am making some error? Richard is referring to the nest option of asdoc that creates the nested regression tables. Without the nest option, asdoc produces detailed regression tables and exports

Read More

Reshape data in Stata – An easy to understand tutorial

Tags : 

From wide to long format Suppose we have the data in the following format The above structure is known as the wide format. If we wish to convert it to a long format, such as the one given below, +—————————–+ | id year sex inc ue | |—————————–| | 1 80 0 5000 0 |

Read More

asdoc version 2.3.3 : New Features

Tags : 

Version 2.3.3.2, dated Feb 23, 2019, of asdoc bring significant improvements to existing routines and introduces few new features. Details are given below. If you have not used asdoc previously, I would encourage you to read this half page quick start to asdoc. New Features 1.Font style 2. Formatting the header row and header column

Read More