BLOG

BLOG2020-07-05T13:45:11+05:00
1512, 2018

Merging datasets in Stata on long strings and less precise matching criterion

December 15th, 2018|Categories: Uncategorized|5 Comments

The Problem Consider the following two datasets where company names are not exactly the same in both the datasets, still we want to merge them using the name variable as the merging criterion. How that can be done in Stata. name in dataset 1 name dataset 2 symbol data set2 The Pakistan General Insurance Co. [...]

1212, 2018

asdoc: Export Stata dta file to MS Word

December 12th, 2018|Categories: Uncategorized|18 Comments

Creating tables in Stata using asdoc is super-easy. In this short post, I'll show how to use asdoc to export Stata data to MS word files. If you have not already installed asdoc, it can be installed by ssc install asdoc For exporting values from the data files, we can use the sub-command list [...]

1212, 2018

ASROL Version update: calculation of geometric mean and products in a rolling window and over groups in Stata

December 12th, 2018|Categories: Uncategorized|0 Comments

Description asrol calculates descriptive statistics in a user's defined rolling-window or over a grouping variable. asrol can efficiently handle all types of data structures such as data declared as time series or panel data, undeclared data, or data with duplicate values, missing values or data having time series gaps. asrol can be used for [...]

412, 2018

asreg: Get standard errors of the first stage regression of the Fama and MacBeth (1973) Procedure in Stata

December 4th, 2018|Categories: Uncategorized|Tags: , |1 Comment

In the following example, we shall use asreg that can be installed from SSC by typing the following line in Stata command window   ssc install asreg   The problem Let's say that we wish to report different regression statistics from Fama and MacBeth (1973) regression such the standard errors of variables. Using the fmb [...]

312, 2018

ascol : A Stata package to convert daily stock prices and returns data to weekly, monthly, quarter, or year frequencies

December 3rd, 2018|Categories: Uncategorized|8 Comments

Description ascol converts daily data of asset prices or returns to weekly, monthly, quarterly, or yearly frequencies. When converting asset prices to a lower frequency, ascol selects the last price in the given period. For converting asset returns, ascol offers two possibilities - either to sum the daily returns or find products of the daily returns. [...]

Go to Top