libhtml available on SSC
Thanks again to KitBaum for making another package available via the SSC archives. The libhtml package installs an ado wrapper that is used to download and compile Mata class definitions for HTML5...
View ArticleCan a lack of data for a variable lead to 'omitted because of collinearity'?
Hi All, Thank you in advance for reading. I am currently running a fixed effects model for my dissertation, studying GDP per capita growth and a number of explanatory variables. My sample is 25...
View ArticlePlotting a quadratic relationship (too naive?)
I followed these instructions http://www.ats.ucla.edu/stat/mult_pk...ral/curves.htm in order to grasp the actual form of my quadratic relationship. After having both my linear and quadratic coefficient...
View ArticleFinding decile of a group's median income in the whole distribution
Hello, I have a question. Suppose I have a dataset as follows, ----------------------- copy starting from the next line ----------------------- Code: * Example generated by -dataex-. To install: ssc...
View ArticleHow to impute missing values for a variable that is subsequently used to...
I am struggling to see how to obtain a pooled estimate for a variable after multiple imputation that can be worked with in further data manipulation for the original dataset. I am using a large child...
View ArticleLooping over dates
Hi everyone! I've got several dates for which I need several dta. files. Dates: 01jul2005 28dec2005 26jun2006 23dec2006 21jun2007 18dec2007 15jun2008 12dec2008 10jun2009 07dec2009 05jun2010 02dec2010...
View Article_5ytor: factor variables may not contain noninteger values
Dear all, I have a variable `_5ytor' which has the values 0, 0.2, 0.4, ..., and 1.6. Code: . tabstat dollar, by(_5ytor) Summary for variables: dollar by categories of: _5ytor _5ytor | mean...
View ArticleDiff-in-Diff with several time-periods
Hello everyone. I am analyzing a data set consisting of mean incidence rates for a certain disease on a county-level in a country. I have data for 15 years and about 300 counties (4500 observations in...
View ArticleTabulations and Tables
Simple question: tab x y,row nolabel tab x z, row nolabel What would be the command for a table that combines the above two tab commands? So it includes x y z in row without the label I tried table x y...
View Articleivreg standard error estimation
Dear all, I am wondering which method is used in the ivreg command to estimate the standard errors of the second stage... Are they estimated by a bootstrap method ? I need to know this in order to...
View Articletest
Dear stata users I have a variable measuring the regime type of countries from 1900-2013. The variable is coded this way: Code: 0 = autocracy 1 = hybrid 2 = democracy I would like to use this variable...
View Articletest2
Dear stata users I have a variable measuring the regime type of countries from 1900-2013. The variable is coded this way: Code: 0 = autocracy 1 = hybrid 2 = democracy I would like to use this variable...
View ArticleCreating a variable that captures the years when another variable changes...
Dear stata users I have a variable measuring the regime type of countries from 1900-2013. The variable is coded this way: Code: 0 = autocracy 1 = hybrid 2 = democracy I would like to use this variable...
View ArticleSave level 2 residuals from gllamm
Dear Statalist, I've run a model using gllamm, with an ordinal outcome (under/normal weight, overweight, obese), 2 levels (1 - individual, 2 - local authority district, LAD), and four covariates. The...
View Articlereplace var = `local' if condition = 1 --> error: "if not...
Hello, I want to replace values with values stored in a macro under a specific condition. Code: *** calculate mean age per class for SCHOOL_1 *** and replace the age of specific pupil with the mean...
View ArticleMultivariate Regression
Hello everyone, I'm relatively new to Stata and am trying to work out the best way upload my data. I'm attempting to look at the relationship between relative debt levels and stock price outperformance...
View Articlenon-reproducibility problem between Stata versions with nl command
Dear Stata users, I have a non-reproducibility problem between Stata versions with nl command. I run an old program, I wrote some years ago, and don't find same results. I tried with several versions...
View ArticlePanel regression: what is the contribution of the fixed effects to the...
The following question is a general question, independent of the type of data used (although I can provide a data example if this is desired). If you run a panel regression model (xtreg or areg in...
View Articleboottest bug fix and updates
Kit has just posted an important update to boottest. Important, because it fixes a bug that affected reported results when using observation weights (pweights, etc.) I'm very sorry for this error. In...
View ArticleInterpreting results of MMSEL
Hello everyone. I am working with the command MMSEL in Stata 13.0 found here: http://fmwww.bc.edu/repec/bocode/m/mmsel.html. The command was developed as per the Machada and Moto (2005) methodology to...
View Article