Exporting tables produced with -tabcount-
Dear all, I have been using -tabcount- to produce frequency tables mainly because I need the zero frequencies to be included. Unfortunately, I cannot see any way to export these tabcount tables into...
View Articleconducting a group mean
Dear statalisters, I am aware that the solution to my question might be really easy, but I am searching the web for over a day by now and I still can't find the answer, so I really hope that you can...
View Articlecount of experiences using a moving 5yr window
Hello! I am working with data on M&A. I am trying to calculate the number of times a certain type of acquisition experience (coded as a dummy) occurs but only when it occurs within 5 years prior to...
View ArticleDetection and removal of same year announcements
Dear statalisters, I have searched the internet and forums extensively, but can't find the answer I'm looking for. Hopefully you can help me out. My objective: Exclude firms that announce (share...
View Articlestmixed does not work
Dear All, I'm trying to fit a Flexible Parametric Model by using -stmixed- (ssc install stmixed, replace) in W10 (Stata 14). The code is the following : stmixed BP DM Gender || Country:, df(3) d(fpm)...
View ArticleCommands for rank testing
I am drawing random observations from various ordered populations and for each draw I am recording the rank of each observation (1 through n) with respect to the total population size for that draw...
View ArticleLarge database: op. sys. refuses to provide memory
Hello, my database is 19GB, I'm using Stata 12 SE and my computer is windows 7 - 64 bits 3GB RAM. I´m trying to load this large database in stata and the program shows this: op. sys. refuses to provide...
View ArticleInterpreting time ratios in ATF models (streg)
Hello, I read a post from Robert Gutierrez on the interpretation of time ratios in accelerated failure time (AFT) models which really confused me. http://www.stata.com/statalist/archi.../msg00698.html...
View Articleeconometrically correct MODEL???
Hello statalisters, I would like to ask if what I have done with this model makes sense, its an OLS model: Where une_rt_a = unemployment rate, lagune_rt_a = lagged unemployment : reg $ylist lagune_rt_a...
View ArticleHelp with error: interactions not allowed
I am using the xtlsdvc command (bias corrected least squared dummy variable). When I am running the code, I am getting an error that interactions are not allowed. I would have manually generated new...
View ArticleSimple stata question..
I have looked at archive upon archive regarding this, tried about 40 different things and I still can't get this. I'm very new to Stata All I want to do is generate a new variable that contains the max...
View ArticleQuantile regressions - coefficients near zero at median
Hi all, I'm running quantile regressions for the first time and getting some funny-looking results - I'm just hoping I haven't missed anything obvious like an option I should be specifying or something...
View ArticleComparing coefficients over pre, during and after sub-samples
Hi, can I check what is the most appropriate way to compare coefficients estimate (for interpretation) for sub-samples of pre, during and after GFC periods? The same model eg. "reg y x" is run on on...
View ArticleThree stage heckprob model or triple hurdle model
Hey guy, I have dataset which is biased due to two selection criteria(hurdles). Now I would like to know whether it is possible to do a heckprob model with 2 selection criteria or a triple hurdle model...
View Articlextmelogit and cluster
Hello, I work on health data. My model is a logit model with hospital random effect and cluster of patient residence. I then use the following command: "Xtmelogit y x1 x2 ... || hospitals: covariance...
View Articlecalculating hit rate after logistic regression
hi, I'd like to know how to calculate hit rate after a logistic regression. I have used the survey set in my data. Also, in terms of checking the predictive power of logistic model, is there any...
View ArticleOmmited residual variable
Please help me. I run a long run levels model, obtained residuals using the "predict r, resid" command. Then i ran an ECM model including a lagged residual variable. When i ran an ECM the residual...
View ArticleTimeline graph for presentation
Hello I just wasted a day trying to get excel to make me a timeline. I have failed. I have four registries for every registry there are 3-4 dates of interest. So i have the following Reg_var start_date...
View ArticleDifference in Difference with compustat data
This is a pretty basic question, i want to establish if a marketing campaign undertook by a company was successful or not? I have the cash flows for that company (company A) before and after the...
View ArticleCreate a Calendar for each ID
I'm trying to create a calendar for each each ID for which I only have dates of interest. For instance, my data looks something like this: ID start stop var1 1 1-Jan-2014 1-Sep-2014 L1 1 1-Jan-2015...
View Article