BLOG

BLOG2020-07-05T13:45:11+05:00
709, 2023

Fastest regressions by groups in Stata with asreg

September 7th, 2023|Categories: Uncategorized|2 Comments

This is a quick overview of how to use asreg command for running regressions by groups. To know about the installation and other details of asreg, please click here. Regressions by groups in Stata A group is a subset of data that has a common identifier. Examples of groups can include families, industries, countries, regions, [...]

1307, 2023

asrol : Stata | Find statistics excluding focal observation

July 13th, 2023|Categories: asrol|0 Comments

In this blog post, we will explore the capabilities of asrol for calculating descriptive statistics in a rolling window or over a grouping variable while excluding focal observations.  asrol is a Stata command that facilitates the calculation of descriptive statistics. It can handle various data structures, including time series and panel data, and [...]

1210, 2020

Convert String Variables to Numeric in Stata

October 12th, 2020|Categories: Blog|2 Comments

In this post, I show how to convert string variables to numeric in Stata. String variables are shown in red . If a numeric variable is stored as a string variable in Stata, we have several ways to convert them to numeric variables. Let's start with the destring command first. 1. The destring command The [...]

3108, 2020

Quick Table for Renaming Variables in Stata

August 31st, 2020|Categories: Blog|0 Comments

Renaming a single variable is pretty simple in Stata. Assume that we have the following variables in our data set. date symbol returns If we wish to rename the variable 'returns' as ret, then the code will be as follows" rename returns ret We can rename many variables using the "rename group" features of [...]

3007, 2020

asrol’s Options | Stata Package for rolling window statistics

July 30th, 2020|Categories: Uncategorized|6 Comments

asrol's Options asrol has one required option and 8 optional options: Details are given below: 1. stat() Option stat is used to specify required statistics. Version 4.0 or higher of asrol supports multiple statistics for multiple variables. The following statistics are allowed; Option Details sd Estimates the standard deviation of non-missing values mean [...]

703, 2020

Using the bysort prefix with tab commands in asdoc | Stata

March 7th, 2020|Categories: asdoc|Tags: , , |0 Comments

Recently, Scott Siegal asked for the possibility of adding the bysort prefix with tabulate, tab, tab1, and tab2 commands to asdoc. Honoring his request, I have added the bysort support to asdoc. The new version of asdoc can be installed from my site. Copy and paste the following line in Stata and press enter. ssc [...]

Go to Top