Quantcast
Channel: Statalist
Browsing all 72764 articles
Browse latest View live

Interaction term w/o including one of the variables

Hi, I have a panel of firms in 8 years, categorized in two sub-samples of treated and control. I want to see the effect of treatment on an outcome variable Y by regressing Y on the treatment dummy...

View Article


LLC test indicates stationarity; IPS indicates unit root

Dear all, I am using Stata 14.1 to analyze balanced panel dataset of 11 countries over period 2002-2014 (143 observations). As a first step, I want to check for stationarity of the series, in this...

View Article


Advanced if-function needed

Dear colleagues, I am working with a dataset with more than one entity per cluster. Meaning that the dataset contains one case for the main person and one for his/her partner. The partner case can be...

View Article

gen dates greater than ...

Hi all, I have data from 04jan1999 to 11apr2016 I would like to have 4 periods : First: 01/04/1999 à 10/12/2004 Second: 10/12/2004 à 29/12/2008 Third : 29/12/2008 à 08/12/2014 Fourth : 08/12/2014 à...

View Article

Different signs of instrument in treatreg and ivreg

Hello. I am trying to estimate a model using instrumental variables in cross-sectional data. The outcome variable are test scores, the endogenous variable is school classification (binary), and my...

View Article


What are the differences between -matchit- and -reclink-?

Someone has asked me the above question in a private message, but I guess the answer may interest other Statalist users. Moreover, other people may have a different take on it which may correct or...

View Article

IOT Stata Module Update on SSC

IOT Stata Module update is available now on SSC Thanks to Prof. Kit Baum iot can estimate: - Leontief Input-Output Table - Input-Output Sectors Transactions - Input Share (%) in Intermediate Input (Ij)...

View Article

freduse error

freduse is an ado: findit freduse when I'm using freduse I get the following error: Code: . freduse UNRATE, clear unknown network protocol cannot copy UNRATE from...

View Article


Using eqno# function

Hello Statalisters! I was wondering if I could get some help using the following command: test [eqno=eqno[=...]] [: coeflist] My problem is as it follows: Given the following set of equations: y = a +...

View Article


Estimating the impact of a deviation of one variable from another one in a...

Hi All, I am trying to find a command in Stata that can estimate different measures of the deviation between two covariates, e.g. x1 and x2. The empirical model I would like to run is on a panel data...

View Article

Elasticities - logging vs. eyex margins in fractional regression

I'm estimating a simple bivariate fractional regression model (Stata 14). My outcome and predictor are fractions, neither include zero values. Given that the predictor is also a proportion, I believe...

View Article

conditional and unconditional margins after two-part model

Hi Statalit I use Stata 14. I'm trying to run a two-part model (first-part : logit and second: glm/poisson/log) and the Code: twopm perfectly works. To show my results, I would like to show margins of...

View Article

by() processing with string vs. numeric variable

I am using the user-written egen_inequal package which calculates inequality statistics such as the Gini. I am calculating the Gini for by-groups. If the by-groups are defined using a numeric variable,...

View Article


Testing equality of parameter estimates between two models for an explanatory...

Dear Statalisters, I intend to test for the equality of the coefficient estimates for one of my explanatory variables for two different models/methods, i.e. fixed effects, and random effects. For the...

View Article

Testing coefficients equality in panel data and xtsur regression

Dear Stata Users, I’m using a SUR model in an unbalanced panel data context (xtsur Stata module). I’m running two separate regressions with the same number of observations and the same set of...

View Article


help with zanthro

I am trying to calculate z scores for children over 5 years of age using the WHO growth reference 2007. I am using a Mac. I installed zanthro and used the following command: . egen zhawho=...

View Article

Image may be NSFW.
Clik here to view.

Please help with emh

Good afternoon, I am trying to use .emh to testing between-subjects and within-subjects effects for data requiring non-parametric version of repeated-measurements ANOVA. The study was conducted on 10...

View Article


Regression when dep. variable is a proportion: a few questions

Hello I am doing an analysis of the determinants of census tract unemployment rates. Some of the previous literature on my topic has used straight OLS regression, and I started with this type of...

View Article

Time id on panel

Hello everyone, I have an unbalanced panel, and I want to create a variable that identifies all observations that have 4 observations in the panel, specifically the last 4 quarters, it does not matter...

View Article

Interaction term between a dummy variable and a quadratic term

Hi, I am using stata 12 and running a multilevel model. I want to test three hypotheses: 1) Individuals' income has a curvilinear (inverted U-shaped) relationship with protest participation1)...

View Article
Browsing all 72764 articles
Browse latest View live