Interactions with coefplot. Comparing (some) coefficients across two models
Dear statalist, I have panel data over two periods (2000 and 2010) and I am employing a model that, as well as some control variables, includes my variable of interest and its interaction with a time...
View ArticleCreating variables from loops
Hi, I'm doing a monte carlo experiment to create some panel data. To do this i need a colum vector for the ID and time_ID of the observations (together with the y and x values which should have been...
View Articlecgmwildboot and esttab
Hello everyone, I am running a pooled OLS with 60 observations which belong to 15 clusters, I read that I can't use vce(cluster varname) command since my clusters are too few. Therefore I runned the...
View ArticleChow test, Panel Data, Stata 13
Dear all, I have panel data and want to see what is the time trend of the Internet Expenses for DAX30 companies from 2000-2016. After doing "regress company time" for each company, I suspect there is a...
View ArticleData Manipulation (Taking ratio for observation by group)
Dear all, I have a dataset with app. 8 million observations. I have firm ID, product ID, date of transaction, destinations, price. I want to calculate price raito for two different destinations by each...
View ArticleReplacing Values
How can I replace the zero values of variable B with something like 123 (the value of the last observation which A is 1 or 3 and so on)? A----B 1----0 1----0 1----0 1----123 2----0 2----0 3----0 3----0...
View ArticleHow to make and interpreting bivariate statistics for population survey...
Dear experts Regarding statistics to population survey, could you please tell me which one of the syntax using for bivariate analysis [chi square] and what does different the meaning of each syntax...
View ArticlePrefix for first observation in panel?
I have three variables, id year effect. After using xtset id year, I want to calculate, for each id, the difference between the value of effect in each year and the value in the first year. Can I do...
View Articlecdsimeq individual panel effects with probit
Hi, I'm trying to estimate a simultaneous equation say: y=f(X1 X2 X3 X4) ==> individual effects model with y continuous X1= f(y X2 X4 X5) ==> probit model with X1 binary I know that "cdsimeq" in...
View Articlenetwork map
Dear Stata users, I am doing network meta analysis. i did a network map but i want to include the odd ratio and 95% CI in side plot Group counselling Vs No contact Group counselling Vs Self help Group...
View ArticleMerging Multiple Obs. Per Year Dataset with Coutnty-Year Dataset
Hello Statalisters, I apologize if it is a question already been asked (and solved, hopefully). I have two datasets that I want to merge, but I have a problem sprouting mainly from the way the data is...
View ArticleCohort analysis in hours of work model
Hi, I am running a linear regression model using pooled cross section data where hours of work is the yvar. I have demographics as ivars (like age, age_sq, b1.native, b1.white, b1.married, children),...
View ArticleUse of the conditional market model with panel data stock returns
Dear all, For a research we have to use the conditional market model for our event study on earnings announcements. We have daily stock return data of 1400 companies for a 6 year period. How can we...
View ArticleLarge sample and xtabond2
Hello Statalisters, I have a dynamic panel model and I'm testing for mortality persistence. I am working with 5,563 municipalities for a period of 8 years and I am using xtabond2 in Stata13. The...
View ArticleReshape wide - coordinates level data
I have the following monthly data by coordinates (below). The data is by longitude and latitude, how can I reshape the data into wide form so that each column is a coordinate and each row is a month?...
View ArticleTime-series Cumulative statistics
Hi, all: The working time-series dataset looks like as below: Code: Year Place 2001 A 2001 A 2002 A 2003 A 2004 B 2005 B 2001 C 2003 C 2004 C I want to generate a cumulative summary statistics to...
View ArticleReshape Panel Problem
Hello everyone, For my thesis, I have a dataset, downloaded from Eurostat using the user-written tool eurostatuse. The code I have used so far is: eurostatuse gov_10a_main, geo(BE BG CZ DK DE EE IE EL...
View ArticlePanel data variable management, instrument variables and the bys command
Hi Statlisters, I am currently dealing with a panel data management problem, and was hoping someone on this forum may have encountered this problem before. I am dealing with a panel dataset with 97...
View Articleparametric survival regression and discrete time survival regression
Dear Statalisters As I read in this article, 1- for time-dependent covariates there are no need to test any violation of the proportional hazards assumptions (page-7). 2- natural logarithms of firms'...
View ArticleBackwards Selection with Stratification
New to using Stata so I apologize that this is such an elementary question. I'd like to perform backwards selection for a logistic regression model. I need this only for females in the dataset, so I...
View Article