Skip to main content
Skip to footer
Epidemiology & Technology
Home
Stata
Containers
Docker
Proxmox
Traefik
Ubuntu
Manjaro
Windows
Mac
WordPress
Welcome
About Me
Publications
Home
Stata
Containers
Docker
Proxmox
Traefik
Ubuntu
Manjaro
Windows
Mac
WordPress
Welcome
About Me
Publications
Search site
Search
×
Blog Archive
Multi-level Model in Stata – basic syntax for ‘mixed’
Commands used - xtmixed (older versions, aslo used in Sophia Rabe-hesketh book) or mixed (Stata 15 and newer). By default, xtmixed includes a random intercept Model Specification Outcome variableFixed Effects part of the model- double pipe - ||Random part of the modelCluster identfier - example subject id within whom the
August 8, 2020
Stata Date – Time calculations
Stata stores and saves date and time as numeric intervals referenced from 1 Jan 1960 (01jan1960 = 0) When the variable is time, one should use double variable type When variable is date, float is OK Stata help The above command is your best resource! Stata Internal Format (SIF) and
August 8, 2020
Likert Scale Frequency analysis HTML Output
I have written a small Stata program, that does frequency analysis of Likert Scale items and outputs the results as a HTML file The program Copy the code below and save it as likertlist.ado in your "C:/ado/plus/l " folder. I am trying to submit it to SSC as well Usage
July 1, 2020
Likert Scale Score Calculation in Stata
When you have a scale with Likert scaled responses - example the EU-HLS-Q47 Items: q01-q47; Responses: 1-5 where 5 == Don't know Calculate number of Dont Know (5) responses by each participant and number of non- missing responses given by each person Calculate Mean Score with correct denominator automatically applied
June 30, 2020
HTML Output in Stata
A mix of these commands can be really helpful by generating HTML files as outputs. I have started prefering using htput command by Lloren Quint for majority of my analysis. You can search for it using net sj 12-4 dm0066 htput htsummary - Best for simple summary tables The htopen
March 25, 2020
Stata 15 installation on Ubuntu 18.04
Install dependencies Untar the files in /usr/local/stata15. Install Stata and add your license information. Add the directory to path Log out and re-login to initialize the path Start Stata
October 17, 2019
Factor Congurence Calculation in Stata
This is a code I had written for factor congruence analysis based on the formula that I was provided. It calculates the congruence for multiple datasets of results of factor analysis (again - not original data but results). Each db being an excel file with two sheets - factor analysis
April 9, 2019
EpiData to Stata
EpiData is commonly used by researchers all over the world for data entry. Stata is used commonly for data analysis. EpiData can export to Stata directly with labels preserved. However there are issues with the width of the variable and value labels Following code will help ! This should take
April 9, 2019
Comparing two Stata Data Sets
Have you ever tried to figure out which variables are common and which are different across two datasets ? Here is the Code to help you out
March 27, 2019
Stata Do File Organization
Locating DO files in a folder fast ! Stata DO files are essential for reproducible research data analysis.Over years, I have developed my preferred method of DO file organization.
March 27, 2019