VIF, uncentered in GMM Regression
Hello everyone, As part of a robustness analysis I'm doing a GMM analysis. Basically I used an OLS analysis with Fixed effect, here is my line of code : Code: regress Qtobin_w centBWOMEN centPERF...
View ArticleAnalyzing dataset where individuals are sampled at multiple random points in...
I have a data frame with the variables Judge ID (uniquely identifies judges), Case ID (uniquely identifies court cases), Decision (records case outcome), and Comp Date (variable specifying case...
View ArticleHow to plot average of a variable against a relative time variable?
Hi, I want to plot the averages of the variables Violent and Property against a variable that I have generated, which captures the relative time to treatment. I want to do this exercise for both...
View ArticleAdding dummy variables together
I have a data set which as variables based on yes/no questions. I have recoded all the variables (9 total) so that the yes answer is 1 and the no is 0. Now I want to make a new variable=1 in which 1 is...
View Articlerequired r(100);
twoway (line Percent_Immigrants ANNEE if PROV == 8, lcolor(blue)) /// > (line Percent_Immigrants ANNEE if PROV == 28, lcolor(red)) /// > (line Percent_Immigrants ANNEE if PROV == 41,...
View ArticleUsing xtdidregress command with 2 cohorts from different birth years
I am using xtdidregress command in Stata 18.0. Purpose of doing this is to identify the causal effect of an educational program on treated cohort vs control cohort. Treated cohort was born 4 years...
View ArticleStset data in long format
Hello all, My dataset comprises of women who are being followed up and are tested for pregnancy every 3 months. Even after testing positive for pregnancy they still are followed up however on the next...
View ArticleComparing coefficients across regressions
Hello, I am estimating a Difference in difference model, and I want to examine whether the treatment has significantly different effects on two different outcomes. How can I do this? In particular I am...
View ArticleComparing sample to a sub-sample
Hi everyone, I have a survey (=18,327 obs) of the Dutch population with the weights to represent the entire population. I have to run some regressions. Because of missing values when I merge different...
View Articlereshaping data
Hi i have this data Code: * Example generated by -dataex-. For more info, type help dataex clear input str9 v1 float(v2 v3 v4 v5 v6 v7 v8 v9 v10 v11 v12) "gender" 0 0 0 0 0 0 0 0 0 0 0 "Age" 40 45 50...
View Articleplotting multiple graphs from panel data
----------------------- copy starting from the next line ----------------------- Code: * Example generated by -dataex-. For more info, type help dataex clear input str12 country int year...
View ArticleMulti-line labels, titles, etc.
I'm recasting a v19 Wishlist request to a General forum posting of questions. Yesterday on the Wishlist I posted this https://www.statalist.org/forums/for...92#post1769092: Stata's -twoway- graphs...
View ArticleIssue with csdid
Im having a problem with csdid and estat event. My data looks like this id year y gvar 110001 1996 0 0 110001 1997 0 0 110001 1998 0 0 110001 1999 0 0 110001 2000 0 0 110001 2001 0 0 110001 2002 0 0...
View Articletwoway line code
Hi I am trying to construct a graph with 2 y-axis and trying to label the y axis, with one y-axis being QALY and the second Y axis being Cost I've tried the below Code: twoway (line UKrcost age,...
View ArticleRolling regressions with asreg when time spacing is unequal.
Hi All, I have a panel of data, with firms, analysts and time. So different analysts issue forecasts for different firms over time. I am using asreg to run a regression of y on x for each analyst-firm...
View ArticleBar graph with shading of parts of bars based on other variables
Hello Is it possible to make a bar graph where some parts of the graph are shaded? Code: * Example generated by -dataex-. For more info, type help dataex clear input float(id end rec res) 1 78 . . 2...
View ArticleProblem applying scheme to graph file
I create and save two graphs. In one of them, I change the size of the x-labels to large. Code: sysuse auto twoway scatter mpg price, scheme(s2color) name(defaults) graph save defs, replace twoway...
View Articlecollect layout + Correlated random-effects regression
Hi, based on the following example, my understanding is that CRE _r_b and _r_se should be reported allined with other estimators, as they are fully comparable. Code: use...
View Articlecreating new variable from combination of multiple dummy variables
Hello! I am trying to create a new variable from multiple dummy variables in a secondary data analysis. These are race variables, where each race is represented by a separate 0/1 (no/yes) dummy...
View ArticleCollinearity issue (master's thesis)
Hello everyone, I am currently using Stata for my master’s thesis in Economics and Business, and I’ve been facing some difficulties lately. My objective is to verify whether the introduction of the...
View Article