Showing R-squared using esttab with a VAR(1)
Hey folks, I can't seem to have the R-squared appear for the respective equations in a VAR(1) estimation using eststo/esttab. When I run the code in the stata window, I get: Equation Parms RMSE R-sq...
View ArticleIdentify all String Variables in a Dataset
Hi there, I'd like to identify all string variables in a dataset and put the names of those string variable in a local so I can use them in a forloop. What's a good way of doing this? Thanks, Erika
View ArticleCounting unique observations by group, before a certain date
Dear Statalist, I want to count the unique number of projects done by a company before the first_idate ("experience"). How do I get from my inputs to my desired output? Thank you in advance! Input:...
View ArticleInterpreting gsem feedback loop
Hello Stata: I'm using gsem to calculate a multi-level generalized SEM with survey data. Essentially I'm looking at the circular relationship between trust, sociability, and migration rate in the...
View ArticleNon- Linear Almost ideal linear demand system estimation
Dear all I'm trying to estimate a 8 goods Non-Linear Almost Ideal linear Demand System in Stata using nlsur. I've been receiving error messages as below, nlsuraids returned 102 verify that nlsuraids is...
View Articleinterpreting gsem feedback loop
Hello Stata: I'm using gsem to calculate a multi-level generalized SEM with survey data. Essentially I'm looking at the circular relationship between trust, sociability, and migration rate in the...
View ArticleProblems reshaping sub-observations into observations (long to wide)
Hello Statalisters, I have a problem that I've been struggling with off and on for several days and I could use some advice. I believe this is a problem to tackle with reshape rather than xpose or the...
View ArticleSample size and significance
Hello everyone, I am here to ask maybe a silly question: - Imagine that a study uses data on firm-performance in one country. Country has about 100 regions and there are 6000 firms. Performance of a...
View ArticleSetting up - Balanced Panel Data with time gaps
Hello all, I have a panel in the following general form: unit year 1 1980 1 1985 1 1990 1 1995 1 2001 1 2006 1 2009 2 1980 2 1985 2 1990 2 1995 2 2001 2 2006 2 2009 3 1980 3 1985... etc In summary, I...
View ArticleHow can I use White's test to see if the variance of a series is dependent on...
I'm looking at inflation data, and I want to see if inflation has a higher variability when the mean itself is higher. I know there's a way to use White's test to test whether the variance is dependent...
View ArticleOaxaca Blinder decomposition
Hi Statalist: I am trying to make a Oaxaca blinder decompostition, but without command Oaxaca. My problem is that I don`t know how to start, I understand the theory behind it. But I am new in stata,...
View ArticleChange order of grouping on forest plot (-metan-)
Hi all, I am trying to change the order in which my groupings of studies are displayed on a forest plot using the -metan- command. Right now I am stratifying by 'var1' which has values 1, 2, 3... etc....
View ArticlePaneldata Analysis-Steps to follow
Hello, for my research I have to do a paneldata analysis and I would like to know if there are steps to follow in order to get valid and robust results. I have paneldata for a time period of 50 years...
View ArticlePost-regression: Augmenting regression function with a random shock
Hi, i'm trying to use fitted values, predicted standard errors and a random 'shock', drawn from the empirical distribution of residuals of the initial regression to create a Monte Carlo estimate of the...
View ArticleCode variables
Hi, Stata users! I have numerical variables on my database and I have been trying the following code on Stata: use year idcompany idemployee sex if (age >= 20 & age <=60) However Stata tells...
View ArticleCounting observations across different categorical variables
Dear Statalist, I am a quite new Stata user. I working with a dataset with information about children, parents and grandparents (see table below). I would like to count and generate in a new variable,...
View ArticleCounting within several categorical variables
Sorry, this was post as a duplicate, of the below. http://www.statalist.org/forums/foru...ical-variables
View ArticleBox-Cox Double Hurdle Model with heteroscedasticity
Hi, I'm using Stata/IC 14.0 to run a double hurdle model to analyse participation and expenditure of lottery tickets in the UK. First of all, I'm wondering what the difference between the following...
View ArticleInterpretation of quadratic dummy interactions
Hi everyone, I have done research online, but I cannot find a definite answer to the following question. In my model, I have the variable accidents_day that represents the number of accidents per day...
View ArticleRepeat Visits- With variable index visit dates (scanning for all potential 30...
Hi All, I am new to the forum, but after searching for similar posts and not finding a question, I was hoping to see if anyone had run into a similar problem I am having. I have a dataset in long form...
View Article