BLOG

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

Getting p-values and t-values with asreg

Xi asked the following quesiton: How can I get p-values and t-values using asreg program? Introduction to asreg asreg is a Stata program, written by Dr. Attaullah Shah. The program is available for free and can be downloaded from SSC by typing the following on the Stata command window: ssc install asreg asreg was primarily

Read More

Ordering variables in a nested regression table of asdoc in Stata

Tags : 

In this blog entry, I shall highlight one important, yet less known, feature of the option keep() in nested regression tables of asdoc. If you have not used asdoc previously, this half-page introduction will put on fast track. And for a quick start of regression tables with asdoc, you can also watch this YouTube video.

Read More

Exporting ttest results from Stata to Word using asdoc

  asdoc installation If you have not already studied the features of asdoc, you can visit this page that lists the table of contents of what asdoc can do. You can also read this one paragraph introduction to asdoc. The following line of code will install asdoc from SSC ssc install asdochelp asdoc   Reporting t-tests with asdoc Before

Read More

asdoc: Cutomizing the regression output | MS Word from Stata | Confidence Interval, adding stars, etc.

Tags : 

  Version 2.3 of asdoc adds the following features for reporting detailed regression tables. 1. Reporting confidence interval 2. Suppressing confidence intervals 3. Suppressing the stars which are used to show significance level 4. Customization of significance level for stars These features are discussed in details below. If you have not already studied the features

Read More

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

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.

Read More

asdoc: Export Stata dta file to MS Word

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

Read More

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

  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

Read More