spatial weight matrix (measuring technological proximity) created using...
Dear all, I would like to create a spatial weight matrix measuring technological proximity. In other words, I would like to construct a matrix whose elements are equal to 1 if two firms belong to the...
View ArticleMargins, atmeans after logit
Dear all, I am running Stata 14 on Windows 8, using logit. The code are: . use http://www.stata-press.com/data/r14/margex . logit outcome i.sex i.group (output omitted) Now, as expected, the predictive...
View ArticleTest for joint significance "variable not found"
Hello everyone, Thank you for reading my post! I would like to test my variables for joint significance using the "test command". I do the following, hoping that its correct: 1. Regress several...
View ArticleR-Squared (within, between, overall)
Dear stata users, I am building a model to predict firm return volatility, if historical returns are not available. My model is based on firm characteristics like size, industry, d/e ratio, etc.. I...
View ArticleMultinomial Logit Model (ACSLOGIT)
Hello, I have been trying to estimate a choice model using individual as well as alternative attributes.I transformed data to long form, however the standard errors are too high when all individuals...
View ArticleCount data model with endogenous variables with interaction terms
I am trying to estimate a count data model (Poisson) with endogenous variables (within which there are interaction terms). I am using stata 13. The model looks like the following: y1 = exp( y2*b1 +...
View Articleasymmetric loss function
Dear All, This is my first time on this platform. I have one question that I would like assistance from you. I am currently working on a topic, which aims at evaluating whether forecasts of government...
View ArticleSorting data by ID
so i converted my data from wide to long format, but weirdly the order of CaseID appears as follows, i want it to be ordered 1, 2, 3, 4... i tried sort CaseID but won't change. Does anyone know why...
View ArticleHadoop or similar
A few years ago on Statalist I asked if anyone was using Stata in a grid or hadoop (or similar) environment and received no positive responses. Since -parallel- has been out now for some time, I...
View ArticleComparing a set of variables.
Hi I am using Stata 13 on Windows. I have a set of duplicate IDs and would want to loop through the set of variables to see if all the variables are the same or different. This is because one can...
View Articleoversampling and undersampling with weights
Hi all, I am comparing means of some demographic characteristics with and without the use of survey weights. If it is the case that the means with the sample weights are higher than the means without...
View ArticleDefining Binary Dependent Variables
Hi, I am new to STATA. I was using discrete choice variables, but that led to major truncation of my first experimental data set. I then converted the discrete dependent variable to four sets of binary...
View Articleinvalid syntax error when using --ologit-- command
When implement a recursive ologit regressions, I encounter a weird error in the last one which include a interaction term "duration". The command is like : eststo clear global multihouse...
View ArticleStatax: JavaScript Syntax Highlighter for Stata
I have written a JavaScript Syntax Highlighter for Stata code, named Statax, as a part of the Weaver package. It accurately highlights Stata commands, functions, strings, local and global macros, and...
View ArticleCount matched observations within group
Dear Stata-users, I have a data set of which a screen shot is attached. In this data set I have many commodities (com) that go in each industry (ind). Only a snap shot of industries 111110 and 111130...
View ArticleCan I estimate choice model if all individuals choose the same alternative!
Any response would be appreciated. This is of critical importance! For instance, look at the following example: Obs pid mode ttime decision 1 1 1 16.481 0 2 1 2 16.196 1 3 1 3 23.89 0 4 2 1 15.123 0 5...
View Articlemultiequation report sample and equation-specific stats
Hi everyone, I am estimating a multiequation model in which I have to test (1) If a subset of regressors X1 is jointly significant for all equations; and (2) If a subset of regressors X1 is jointly...
View ArticleHow to employ centroids of an initial cluster solution for kmeans method
I am performing a cluster analysis and want to combine hierarchical and non-hierarchical techniques. I want to proceed as follow:Hierarchical Cluster analysis using Wards method to determine the...
View ArticleExtract date and values from string variable
Hi I have a string variable named dvd in the following form : clear input str80 dvd "INTERIM DIVIDEND FOR THE HALF YEAR ENDED 30/06/2004 2O%" "" "" "" "FINAL DIVIDEND FOR THE YEAR ENDED 3O/O6/2OO4 55%"...
View ArticleUnable to install ssc files - work around sought
Hello, I have stata 14 installed at work and at home. At home I can install ssc files without problem. At work, which is a government health service, I receive the following error. . ssc install...
View Article