Calculating a multilateral GEKS price index
Stata 14/ Windows I am trying to calculate a multilateral GEKS price index where bilateral Tornqvist price indices are its inputs. I understand the concept of how it works, but I'm having a hard time...
View Articlezscore06 not calculating waz06, bmiz06 and whz06 except haz06
Hi I am using Stata 13 for Windows 7 and i have run the zscore06 package. But when i run the zscore06 command it is not calculating waz06, bmiz06 and whz06 except haz06. What can be the problem? Please...
View ArticleMoulton Problem Example
I am trying to illustrate the famous Moulton variance inflation problem from ignoring clustering. I created a toy data set with 4 states of 20 observations, where each cluster has 2 types: Code:...
View ArticleSEM estat gof(all) RMSEA Unreported Values
I have a three factor model which I am trying to fit for CFA using sem (n=79,407). The initial command is: Code: sem (L1 -> x1 x3 x7 x13 x17)(L2 -> x2 x6 x9 x11 x15)(L3 -> x4 x5 x8 x10 x12 x14...
View ArticleSSC install commands
Hi I am trying to use Table1 without much success *** This is the error I get when I try to install table1 ssc install table1 checking table1 consistency and verifying not already installed......
View ArticleRemoving slashes for a date variable
Hello, I have a date variable that looks like this: 2007/06/20. How can I remove the slashes so that I create three new variables: year, month, and date? Also, how can I get rid of the slashes so that...
View ArticleModell predictions
Hi all, A little extract from a paper: "Predicted cash holdings for each year are derived from a Fama-MacBeth model predicting cash ratios, the coefficients of which are the average coefficients from...
View ArticleRandom sampling and saving the output and seed
I need to select a random sample from my dataset and estimate my model and then save the output. However, for the purposes of reproducibility I also need the seed for each iteration. While this may...
View ArticleNested foreach varlists
I know there have been several posts similar to this, but even after reading through many of them I cannot figure out my code... I have undergraduate student data where each observation (N=8,617) is a...
View ArticleTwo way bubble plots using weights
Hi All, So this was posted awhile back without a helpful solution, I wanted to repost it to the list see if we could figure out a workaround. -scatter- supports weights. When a scatterplot is drawn,...
View ArticleDiscussion About Dynamic .sthlp Stata Help files (similar to Doxygen or Roxygen)
Before I post this, I searched both "Roxygen" and "Doxygen" to see if anyone has mentioned the problem I am facing right now, but there was no luck. So here I open a discussion about a package I...
View ArticleREGHDFE and Predict
Dear Statlisters, I have a question about the use of REGHDFE, created by Sergio Correira. I am using Stata12. Suppose I have an employer-employee linked panel dataset that looks something like this:...
View Articledensity for each observation and log likelihood
Hello, I am trying to get the density for each observation (and calculate the log likelihood) from the Weibull survival model. I need the density for each observation for another purpose and I wrote...
View Articlextprobit--Fitting comparison model does not converge
Hi, I am running xtprobit to analyze a panel data set. However, the fitting comparison model (the pooled probit model) does not converge after 1000 iterations but the full model does converge. I was...
View ArticlePlot margins for odds ratio
Dear stata users, I recently got some difficulties switching from the command "gam" to "margins" What I want is to plot the odds ratio and 95% CIs from a general additive model, starting at OR=1 for...
View ArticleMlogtest responds "Too many weights"?
Hi all, I estimate a multinomial logit model of school choice on survey data, and try mlogtest to test IIA. Problem is, it always returns "too many weights" whatever I try: iia, hausman, smhsiao....
View ArticleCollinearity problem in triple difference regression using panel data
Hello Stata community, I am experiencing a perfect collinearity issue in a triple difference regression. Specifically, the triple difference estimator is perfectly collinear with one of the double...
View ArticleLabelling variables
I am trying to programatically label my variables. I have my data set in the format: Variable1, Variable2, ..... Variable50, LabelDefinitions where the column LabelDefinitions contains the label I want...
View ArticleA new programme for literate programming/scientific research
Hi Thanks to Christoffer Baum a new programme for literate programming/scientific research is present at the SSC. It is called log2markup and with simple markings during logging, log2markup takes such...
View ArticleChance order and text size on boxplot
Hello, I have just started working with Stata and I am trying to make a boxplot of the CO2 concentration in different schools. I would like to name the schools on the plot, change the text size and...
View Article