Running multiple event studies using the loop command
Dear Statalist users, I am new to posting in Statalist and was hoping I could find some help on loop and matrix commands. I am conducting an event study of the impact of central bank announcements on...
View Articlequestion about xtabond2
Dear all, I am just learning about xtabond2 and gmm methods, so please correct me if I am wrong. I have an IV x that is endogenous and a set of monthly variables to control for seasonality. My T=52...
View ArticlePiecewise regression with interaction with categorical var - some groups are...
I have used mkspline to make the variables for a piecewise regression Code: mkspline preH 3 postH = time generate jump = 1 replace jump = 0 if time < 3 Then fit a piecewise regression with an...
View Articlewordcb, a new command for creating codebooks in Microsoft Word format, is...
wordcb creates a Microsoft Word format codebook of the dataset in memory. Stata 15.1 is required. My research group and I work with a lot of different datasets from a multitude of sources; we need to...
View ArticleEditing graph
Hi, I need to edit a graph that starts from 0 to start from 10. I know how to change the x axis range to start from 10, but the dots corresponding to x values smaller than 10 are still in my graph. For...
View ArticleGender wage gap, hourly wage or weekly wage
Hello everyone, I am doing a project on gender wage gap using Oaxaca Decomposition. I am wondering if there is any difference between 1) using the hourly wage as the dependent variable vs 2) using the...
View ArticleValidity of exclusion restriction in an Heckman IV model
Dear Statalist Users, I was hoping to get some inputs on how to evaluate the validity of the exclusion restriction in the Heckman selection model. My sample suffers from the issue of self-selection and...
View ArticleTime series data set up for time series analysis
Dear Altruistic, I'm using Stata 13. My data set is in following formation Code: * Example generated by -dataex-. To install: ssc install dataex clear input byte SpecID long LabID str42 Orgid str10...
View ArticleUsing global variables within forvalue loops
I am trying to design a for loop that can be easily adapted for the input values but cannot work out a way to use global variables within my for loop. I have developed a very simple example to help...
View ArticleUsing same variable for weight and control
I would like to use the same variable for weight and control like: Code: sysuse auto ivreghdfe price weight (length=trunk) [aw=weight], absorb(rep78) But it generates error that says Error: cannot use...
View ArticleInteraction term between social origin and country
I'm looking at social origin effect on occupational attainment in three different countries and want to run a regression with an interaction between the social origin dummies and country. However, in...
View ArticleHow to obtain weighted confidence intervals of the median
Dear Statalist community, I would like to calculate weighted confidence intervals of the median, which I need to use for a descriptive graph (median wealth and associated confidence intervals graphed...
View ArticleFIXED EFFECT MODEL, small saple size.
Dear all, I am regressing the impact of Netflix subscriptions on theatrical admissions in 16 countries from 2012 to 2017. I have heterogeneity, hence I run xtreg logadmissions lognetflixsubscribers...
View ArticleExport Regressions to Different Sheets in Same Excel Doc.
I have been trying to figure out a way to automate my regression output such that each set of regression goes to a separate sheet in the same Excel document. In every cell of the final output there is,...
View Articlextgcause interpretation
I have run a test for Granger non-causality in heterogeneous panels using the procedure proposed by Dumitrescu & Hurlin (Economic Modelling, 2012), which is available using the xtgcause Command....
View ArticleSimulation Study: Panel data xtlogit regression
Hi everyone, Unfortunately I'm not able to download the dataex package, since I'm working on an external server. I hope you can still understand my query and are willing to help me out! I know some...
View ArticleTest of whether country variance is statistically significant
I'm looking at social origin effect on occupational attainment (in terms of ISEI) in three different countries (Sweden, Germany and the UK). I have run three individual regressions and found variations...
View ArticleMerging two variables from different questionnaires
Dear all I am using the panel dataset of South African National Income Dynamics Survey (NIDS) - waves 1 to 5. I am wanting to create a Binary Variable for whether a child (restricted to age 6 to 17)...
View ArticleSummary statistics table
Hi, I want to summarize age, education, family_size and voters (average and standard deviation) by cluster (columns should have ETR, MTR, WTR and Total), into a single table. How? The data is as...
View Article