-xtpoisson, fe vce(robust)- Interpretation of the non-significant interaction
Hello dear forum members! Consider the following model: Code: xtpoisson y x1 x2 c.x1##c.x2, fe All the estimated coefficients are significant. To examine the effect of interaction, I use: Code: margins...
View ArticleProblem using ml model in an ado file
I have an ado file (mltest.ado) containing this: Code: program mltest ml model lf mylogit (foreign=mpg weight) ml maximize end program define mylogit args lnf Xb replace `lnf' = -ln(1+exp(-`Xb')) if...
View ArticleGranger causality test for panel data
Dear statalist, I am taking a look at the paper of Nelling and Webb 2008. They run a granger causality test described as follows Score_t = a_0 + a_1Score_t-1 + a_2Perf_t + a_3Perf_t-1 + e_t Perf_t =...
View ArticleHelp needed - Logit Model (Monte Carlo Simulation)
Hi. I need help in regards to interpreting the results of this do-file. I am new to Stata, and can't seem to find any good site to guide me through the commands of this particular do-file. Is there...
View ArticleCountry fixed effect identified inspite just one observation?!
Dear All, I have firm level data (no panel!) and run: Code: reg y x i.country Stata identifies country fixed effects even for countries that only have one firm in my sample, which leads me to question...
View Articleoverlay spineplots
hi guys! I would like to overlay 2 spineplots. x axis in the same (3 categories), y axis refers two ways of measuring y (same number of categories - 4, distribution visibly different depending on which...
View Articleloop for dummies?
Hi Guys, I'm sorry but I wasn't sure about the title for this post. I'm working with the following configurations: OS: Windows 7 Stata 14 I'm trying to to prepare my data to run a diff-in-diff. For...
View ArticleBusiness Calendar Dates with Hourly Data
I have data on a frequency of every hour that only appears on business days. bcal seems to deal with business days, but is there a %tc equivalent of bcal?
View ArticleExporting results to MS Excel
Dear All, Is there a syntax that one could use to export the output below, maintaing thesame format, to MS Excel? Thanks, Dapel Code:...
View ArticleChanges-in-changes (CIC)
Hi, I am trying to estimate the changes-in-changes model developed in Athey and Imbens (2006) Econometrica . Here is a link to the paper and abstract: Keywords:Difference-in-differences;...
View ArticleLogistic regression: Post estimation, non linear proportion??? and...
Let say that I have a very simple model. My dependent variable is whether or not (yes and no categories) patients in a mental clinic were involved in a violent incident in their last admission. My...
View ArticleVariable suffix for long-to-wide reshaped data
Hello! I am working with data on women's contraceptive histories. In long form, cases are episodes of contraceptive use or non-use. In wide form, cases are women. I have reshaped my data from long to...
View ArticleCalculating average of specific number of observations across industry and years
Dear statalists, I’m using Stata 13.1 on Windows 7 and I’ve data from 2009-2012. I’ve calculated the market share of each company (i.e., comp_share). I would like to generate two variables, avrg1 and...
View ArticleSimulate data for conditional logistic regression
Hi: I have this sintaxis that you can read above, but I want to simulate the same model but now considering that I have a case and control study matched 1:3. (3 controls for each case), I will use a...
View ArticleIncluding graphs in posting
From time to time I see posts with graphs or other pictorial material. I can not figure out how this is done. I have copied a graph from Stata output and attempted to paste it in with no luck. Can...
View ArticleCan we use only the filtering part of -sspace- ? - a trial toward panel...
Dear all, I'm wondering if we can use only the filtering part of calculation done in -sspace- with a fixed set of parameters. What I'm thinking is to estimate potential output for developing countries...
View ArticleProblems clustering/robust standard errors multilevel mixed effects
Hi All, I have an issue with performing my multilevel mixed effects regressions analysis with clustered standard errors. I don't know what going wrong. I have a panel with firms located in several...
View ArticleInteraction term in probit function
Hello, I am currently working on my master thesis and my question is regarding interaction terms between two dummy variables when it comes to applying probit regressions. How do I include an...
View Article4 by 4 table comparison cell count less than 5
Dear statalisters, is there is way to compare 4 by 4 table with one of the cell has frequency less than 5. in stata 14. Thanks
View ArticleConverting String Time variable
Dear All, Please help me to convert the following time variable from string to numeric. Thanks Code: * Example generated by -dataex-. To install: ssc install dataex clear input str15 start...
View Article