Create moving reference groups
Dear all, Currently I'm doing research on the effect of income (inc) on life satisfaction (lifesat) . Therefore I have panel data of about 13000 persons of 6 years. To test if there is a social...
View ArticleStandard error
Dear all, I used the above formula e=(Δh/h).(Δw/w) for the calculation of hours elasticity because of an increase to the wages. For the above calculation i have a specific results which is just a...
View ArticleUsing value of a string variable in the file name of a temporary file
Hi all, I'm using Stata 13.1 on Windows 7. I am importing data from a number of worksheets in a single Excel file and formatting the data for analysis. I generate a new variable called gender which...
View ArticleHurdle model "churdle" output interpretation with interaction
Dear Statalist members, I have a question regarding the interpretation of an output after the "churdle" command. I know that most authors report marginal effects as outputs since the coefficients...
View ArticleTransposing a Matrix of Estimation Results Before Displaying it using esttab
I want to display summary statistics, as follows: Code: clear sysuse auto.dta global shortvarlist "price mpg" estpost /// tabstat $shortvarlist, statistics(mean min p25 median p75 max N) esttab ///...
View ArticleCount number of observations that satisfy conditions based on observation value
Dear Statalist, I have a problem related to counting. I have tried to find similar topics on the forum but didn't find any. In the following example, I would like to find whether event 1 and 2 happen...
View ArticleString variable for age groups
Dear Statalisters, I am using Stata 13.1 and I am trying to convert a variable for age groups in the form 1- ; 6- ; 11- , obtained after converting a continuous age variable (1-100) using the following...
View ArticleR_2 in multilevel
Friends, I have a question, I wish calculate R_2 for an multilevel model, I have three levels, and I do not know how, could help me, thanks
View ArticleIssues with a loop with in a loop
Hi everyone, I'm trying to solve the time taken for an equation to meet a condition (to be greater than quartile90). I want to do this for 471 different equations. the equation I am testing is: Code: y...
View ArticleInterpreting coefficients of dummy and interaction terms in fixed effects models
Dear colleagues, I am running analysis and regressions on a dataset from a laboratory experiment. In my dataset, each row represents one choice made by one subject on one round. Each subject has...
View Articlesyntax [varname] and syntax [varlist] with no argument give "too...
What am I doing wrong here? It's undoubtedly something too obvious for me to see. .ÿversionÿ14.2 .ÿ .ÿclearÿ* .ÿsetÿmoreÿoff .ÿ .ÿprogramÿdefineÿshowm ÿÿ1.ÿÿÿÿÿÿÿÿÿversionÿ14.2...
View ArticleFirt stage results -xtivreg2-
Hello everyone, I am running a number of 2SLS regressions using -xtivreg2-. What I would like to do is display all the results of the respective first stage regressions in one table using -esttab-...
View ArticleRandom Numbers without Replacement
How can i randomly generate random numbers between 1-84 without replacement.? Kindly assist.
View ArticleCreate local variable list with *
I have a large number of variables starting with either with urb7, urb8 or urb9. I would like to create a local list that includes all these variables, but excludes variables such as urb3. I tried...
View ArticleExtracting a number between recurrent words
Dear All, I tried to find a salution to my problem but no luck so far. I have Synopsis of MnA deals from SDC Platinum, I need to extract from the string a number that is always between the words...
View ArticleError r(459) while applying eventstudy2
Hi Guys, for my master thesis I need to conduct an Event Study. I investigate if there is a connection between announcements related to movie adaptions of novels and the return of the movie studio...
View ArticleIntersection of Kdensity Curves
Hey Statalist, this is actually the first time I can't find a solution to my problem in the forums, therefore is my first post. I need to find the value in the x-axis when two kdensity curves...
View ArticleUnexpected end of line - Mata not going through loops
Hi, I'm currently doing an introductory econometrics class. In this assignment we have to do 1000 simulations on three different sample sizes. This is done via two for-loops (Ts = column vector...
View ArticleTest for linearity for dummy variables
Hi everyone, I want to make a test for linearity. Therefore I used the Code: acprplot command, which works fine for continous variables. However if I try to plot dummy variables, Stata is telling me...
View ArticleLatex output of a Augmented Dickey Fuller and a KPPS test?
I am running a dfuller and a kpps test (using the sts15_2 package). Does anyone have code to generate a latex table output of the results in a reasonable form? I tried the usual esttab, etc. but they...
View Article