Fixed effect regression
Hi all, I am trying to implement a fixed effects regression for my panel data. I considering about 20 countries which i categorize into 4 groups based on their predominant legal system. For each of...
View Articleendogeneity
Dear , I would highly appreciated any help in that The problem of endogeneity arises when the factors supposed to affect a particular outcome possibly depend themselves on that outcome. Apart from...
View ArticleGetting clean output for regression loop over levels of a variable and with...
I have been struggling to get Stata to output my regression results, and have tried the eststo commands and outreg2 commands. My code is as follows. I also thought of using parmest but do not know how...
View ArticleHow to drop all single observations?
Hi All, I'm trying to drop all groups of a variable with only one observation each and I am having trouble with the code. Basically I'm looking for political parties that have been active across a...
View ArticleCounting data within rows affected by a common condition
Hello everyone, I am dealing with a very large panel, the situation is the following, I want to count the number of households that have a pair of father and son. The problem is that I have a column...
View ArticleLagged Explanatory Variables
Hello dear Statalist users, I am running xtprobit and I want to lag all the explanatory variables by one period (they are around 20 variables) in my model. Can any body help me what is the command to...
View ArticleStandardised residuals after ml estimation
I have performed an mle estimation based on an ml program and I would like to compute the standardised residuals. Normally, I would do this using predict , rsta but this does not work after the ml...
View ArticleUpdate to carryforward
Thanks to the efforts of Kit Baum, an update to carryforward has been posted to SSC. carryforward copies values into gaps -- sequences of missing values. The latest update consists of the -extmiss-...
View ArticleMultiple Reciprocal Causation in Estimations
Hi I am trying to analyze these estimations: y1= y3 x1 x2 x3 x4 x5 x6 y2= y3 x1 x2 x3 x4 x5 x6 y3= y1 y2 Will 3SLS do the trick since there are two reciprocal causations? Or if it's not possible, what...
View Articleproblem with QUAIDS elasticities
Dear Statalisters I am trying to estimate a 7 goods of QUAIDS model, including two demographics variables with using old Poi's command "nlsur", the model perfectly is working but when I try to compute...
View ArticleHow to generate a column, showing the number of observations (with dummy==0),...
Hello, It is easier to describe my question using a example as shown in attachment. In the data, the observations are ranked by Value from low to high (column 2), and each has a dummy==0 or 1 (column...
View ArticleSignificance test (t-test) for coefficients across multipe unconditional...
Hello, I would like to know how I can do a t-test for the coefficients of multiple rifregs (Firpo rifreg.ado). We´re researching the effect of several variables on the wage and especially the gender...
View Articlegllamm and pweights - error message
Dear Statalist, I am attempting to run a gllamm model in StataMP 14 and, although I've svyset the data to ensure it accepts my scaled pweight, it keeps rejecting it. Please see below for my commands...
View ArticleUse 32-bit when 64-bit is installed for Stata 14
How can I use 32-bit Stata 14 when 64-bit is installed? I only find StataMP-64 in my program files. The reason is that odbc query and odbc load for importing data from Access do not seem to work with...
View ArticleHeckman with two sources of sample selection and Instrumental Variable (IV)
Dear Statalist, I would like to estimate the following equation using cross-section data: Code: Y = A + B*X0 + B*X1 + U In this equiation the dependent variable is only observed when a selection rule...
View ArticleAppend - dates change
Dear Statalists, I am using Stata 13.1 and have a problem concering the "append" command. There are two datasets - one includes dates 1986 until 2003 and the other from 2004 until 2015. They both have...
View ArticleTest/Compare sample proportions to populations
Class # 1 2 3 4 5 6 7 8 Total Not Passed Exam 78 43 60 113 117 81 79 82 653 Passed 34 38 56 65 67 81 45 47 433 Total 112 81 116 178 184 162 124 129 1,086 % Passed 30.36% 46.91% 48.28% 36.52% 36.41%...
View ArticleMargins for a logistic regression model with contemporaneous and lagged...
How should the margin instruction be written to account for the fact that the contemporaneous and lagged regressors are not independent?
View ArticleHow to get standard error of quotient of two regression coefficients?
Hello, how can I derive a Standard error for the Quotient of two Regression coefficients if I only got the coefficients and their Standard Errors? is that possible? I know when I estimate a Regression...
View Article