Diff command - Kernel-based Propensity Score Matching DID in the context of...
Hello, Hope you all are keeping safe. I hope some of you would be better positioned to answer a few of my queries in the context of diff command (developed by Juan M. Villa and available on SSC) that...
View ArticleChange scores in two wave panel data
Hello, I have a two wave balanced panel dataset and I am trying to model change in employment status, so whether one remained unemployed (consistently not in employment), remained employed...
View ArticleMatching country specific data with relationship specific data
Hello, I am trying to build up panel data for my gravity model. the dependent variable is trade flow of 23 countries to each other from 1980 to 2015. I created ids and managed to identify time variable...
View ArticleReshape Problem
Hello Statalisters, I have downloaded some information from NZ.Stat (New Zealand Quarterly Work Statistics) and am having trouble reshaping due to the format of the data. I've posted an example so you...
View ArticleGraphs domain-codomain
Hello all, Right now I'm using the margins and marginsplot commands to look at the graphs of two of my functions. Both serve me to observe the relationship between two dependent variables (HHI2 and...
View ArticleChoosing reference/base periods in panel data where the base period varies...
Hi I am looking to do two things with a panel dataset of firm-year observations. 1. I would like to set the DealYear as the base period for the variable i.Year in the following regression and normalize...
View ArticleInteraction effect
I am curious about the difference between interaction (X##M) and multiplying terms (X + M + X_M, X_M is the multiplying term X*M). Sometimes, I found that the two methods produced different results. I...
View Articlecommand and interpretation for categorical dummy interaction
Dear Statalist, I am using ordered logistic regression, depvar: 5-scale happiness level (women only), indepvars: employment status (employed, unemployed, housewife, other employment status) and...
View ArticleRe coding many variable simultaneously
Hiii All, I am using a datasheet which have many categorical variables like v1, v2 , v3, v4, v5 .............v60 with values (0 , 1 , 8, 9) only and also have a variable named "stage of disease"...
View ArticleCoefplot: arrow on confidence intervals
Hi all, I am performing a logistic regression analysis using the xtlogit command. I am trying to plot the results using coefplot on Stata 15.0, comparing the results of two different models, for two...
View ArticleKeeping Observations According to Age
Hi, In my data, there is an age variable. I want to keep observations having age between 20-70. How should I delete the other observations? I have tried the keep command but it did not work for me.
View ArticleDuration of non-employment spell
Hi All, I have to compute the duration of a non-employment spell. Currently, I have identified the non-employment spells (which are defined as spells of unemployment and non-participation). However,...
View ArticleImporting an excel file
I have an excel file that I need to import with correct variable names. Data in the excel sheet starts with the third row, so I run the following command import excel "$raw_data\2018.xlsx", sheet("NC")...
View ArticleCalculate number of companies in the panel data with at least one turnover
Hello STATA community, I have the following panel dataset: NAME YEAR TURN Apple 2010 0 Apple 2011 1 Google 2010 0 Google 2011 0 Google 2012 1 IBM 2010 0 IBM 2011 0 Turnover is a dummy variable which is...
View ArticleCode folding hotkeys in code editor (doeditor)
Dear All, Before suggesting a feature for Stata 17, I wanted to double check that it doesn't exist yet. So are there any code-folding shortcuts (keyboard hotkeys) in Stata's do-editor? Equivalent of...
View ArticleDiscrete variables - Mean comparison and model
Hi. Within the explanatory variables of a multiple regression model I am working on, there are two variables: 1. Number of chronic illnesses - this variable was created from information on the number...
View ArticleMultilevel binary logistic Regression
I wish to run multilevel logistic regression with my dependent variable being suffering from hypertension (0=no, 1=yes) for the population residing in different states. I run the following command on...
View Articlefcolor questions for spmap / maptile
Hi every one! :D I have a question regarding the color scheme of spmap / maptile. I want to ask if is there a color scheme that is green for positive values and red for negative valeus, while the color...
View ArticleStata Interface Preference
Hello everyone! :D I have a question regarding the user interface question. I am used to setting up the do file, main window, and data editor in the same screen in the following arrangement: Array I...
View ArticleDropping a sequence of variables, ignore if not present
Hi All, Is there an option in Stata, wherein one can drop multiple variables, but where the execution is not interrupted if one of the variables has already been dropped? Perhaps like a Code: force or...
View Article