### LASSO in Stata

May 24, 2024Crossvaldiation By default, stata will select model with highest lambda LASSO commands for PREDICTION Stabdard Lasso estimation commands Lasso Inference…### Compact Results of Logistic Regression in Stata using ‘estout’ – ‘logisticresults’

February 20, 2024After running a logistic regression in Stata, for inclusion in classical tables, one needs the Odds ratios and 95% confidence…### Easily get gender wise results of binary outcomes after survey data analysis in Stata

February 16, 2024Problem Statement: You have a survey data and you wish to summarize your prevalence by gender Prerequisites: Stata Code Result…### Tests for Trends in Repeated Cross Sectional Surveys

March 3, 2021The Cochran-Armitage trend test can be used to assess time trends in prevalence of outcomes across repeated cross-sectional surveys. Sample…### Stata Date – Time calculations

August 8, 2020Stata stores and saves date and time as numeric intervals referenced from 1 Jan 1960 (01jan1960 = 0) When the…### Factor Congurence Calculation in Stata

April 9, 2019This is a code I had written for factor congruence analysis based on the formula that I was provided. It…### EpiData to Stata

April 9, 2019EpiData is commonly used by researchers all over the world for data entry. Stata is used commonly for data analysis.…### Comparing two Stata Data Sets

March 27, 2019Have you ever tried to figure out which variables are common and which are different across two datasets ? Here…### Stata Do File Organization

March 27, 2019Locating DO files in a folder fast ! Stata DO files are essential for reproducible research data analysis.Over years, I…### Stata Do File initialization

March 27, 2019Remembering what that Do file is for ! I have lost count of how often did I get confused when…