Clustered st.errors
Dear Statalist, I am running a simple regression model and I have a question on when to use clustered errors, how to test for the need of clustering and what is the difference between clustering errors...
View ArticleTransition probabilities: too many values
I have an unbalanced panel (id date) with around 8 million observations. My categorical variable occu takes 337 unique values. I need to compute transition probabilities for occu and save the matrix of...
View ArticleAdjusting for firm fixed effects
Hi Currently working on a panel data set, and are adjusting for firm fixed effects. However, I want to add a dummy for one specific country (Norway). This variable gets omitted (due to collinearity)...
View ArticleUse count together with display
Does anyone know if it is possible to use the count (or a corresponding command) together with display? for instance, instead of writing: count if gender=1 count if education=1 123,456 654,321 display...
View ArticleIs -sigmamore- suitable to hausman test after xtlogit?
Dear statalists, I am comparing RE xtlogit and FE xtlogit for a balanced panel database of 1500 observations. The following is the command: xtset id t (where id refers to individuals and t refers to...
View ArticleKeep a value in multiple ID
I want to keep the value(at variable CD4) just before it takes >500 for the 1rst time. In the example below I want to keep the value: 371. But I want it for different and multiple ID's. ID CD4...
View Articlenested local not working
Hi, This is a simplified version of the problem I have.I would like to create a local as a function of another one and then use both in the same command. Something like that: local a 1 local b `a'+1...
View ArticleLongitudinal datasets - filling-in missing data from a previous year
Hi I'm currently working with a very large longitudinal dataset spanning 10 years. One my variables of interest ethnicity which is missing for the final year 2014-15. My idea is to fill-in the missing...
View ArticleDo-file editor scrolling on mac
I recently acquired a mid-2015 15-inch Macbook pro with Retina display running mac OS 10.12 (Sierra). It's running Stata/MP 14.0. Scrolling in the Stata do-file editor is very balky. For example, I can...
View ArticleCluster standard error in a poisson model
Hi, I am working on a poisson model that needs Woodbridge-Papke standard error. The standards errors also need to be clustered. Do you think using VCE(cluster group) will work? Many thanks! Best,
View ArticleMatched-odds ratio for variables with more than two categories
Dear Statalist members, I need someone to help me in the interpretation and manual calculation of the matched-odds ratio (mOR) for variables with more than two categories. In matched case-control...
View ArticleEffect sizes with blank or zero confidence intervals
I'm new to Stata. Can anyone explain why the 90% confidence interval for a significant factor or interaction with a "large" effect size has a lower bound that is calculated to be either 0 or is blank?...
View ArticleSuest for comparting coefficients for two samples using Fixed Effects regression
I am using xtivreg for fixed effects regression. I want to compare coefficients for identical models, using two different subsets for the data. I'd like to use suest, but it looks like I can't do this...
View Articlemlogit and roc curves
Hi Stata users, i want to derive roc curves for a multinomial logistic regression model. I found the ado-file mlogitroc from Petersen. However it doesn't work for factor variables and time-series...
View ArticleCreation of Dummies in Panel data companywise irrespective of missing figures
Hi All, My panel data structure is as follow: Code: xtset coidn year xtdes coidn: 1, 2, ..., 55 n = 55 year: 2000, 2001, ..., 2015 T = 16 Delta(year) = 1 unit Span(year) = 16 periods after my...
View Articlerepeated measure ANOVA error in repeat option
Hello, I have problems understanding the ANOVA command. I have one depend variable CSP, three factors LCSTAGE, ROE und ROE_1 and control variables. CSP has a range from 0 till 100. LCSTAGE are 5...
View ArticleHighly Correlated variables
Hi, I am struggling to decide if I should include two variables that are highly correlated (0.75) in regressions. Lets say the two variables are variable A and variable B. Variable A is theoretically...
View ArticleHow do I merge data files with multiple identifiers that are different?
Dear Statalisters, I am a new stata user currently working on a socioeconomic dataset of about 5,000 households, and need help to merge some of the data. I am trying to merge 5 files, each with two...
View ArticlePropensity score matching - binary outcome variable
Hi all, I have a panel data for a treatment and control group and want to compare whether they differ with regard to a binary outcome variable. I have used propensity score matching to identify pairs....
View ArticleMerging panel data sets with multiple spells
I am using panel data of about eight waves. Apparently people can drop in and out of the panel at any time, at least there are some units who only start in wave 4 or 5 and of course there is panel...
View Article