Complex merge or perhaps other strategy?
Dear all, Brief background. Some areas in a resort have employed a new service strategy. The main goal is to see if this new service reduce the number of guest complaints. So the aim is to compare...
View ArticleComputing and Storing Variance, Covariance, ANOVA
Hi Everyone, I have a very straightforward question, but I am stuck, therefore would appreciate your help on this. I want to calculate and store variance/covariance matrices and ANOVA numbers (e.g.,...
View ArticleMultilevel Model with xtimixed command on Stata, how do i weight it?
Good morning fellows, currently i'm working on a multilevel model in Stata and the data base i'm using is a House hold survey, one per each year. My question is if i should weight the model with the...
View ArticleError - "repeated time values in sample" - varsoc command
Hi everybody! I am using strongly balanced panel data of 14 countries from 1870-2008 containing information on financial aggregates and economic indicators. egen ccode = group(iso) tab iso, gen(ccode)...
View ArticleMarginal effect of a median change?
Dear Statalist, I'm currently writing my MSc thesis. I estimate the effect of a tax increase on investment. The data is cross-country and at the country-level. I run the command reg inv LD.tax i.year...
View ArticleHow to save means as a new dataset/matrix
Hey there, I was wondering how to store estimates of mean values of several subpopulations as a new variable in my dataset or as matrix or anything that I can load insert into another dataset. This is...
View ArticleNeed help on xtgraph!
Hello Statalist, I found the problem on the xtgraph function that I need to show a graph for my panel data with medians that does not include the lower and upper bound. Instead, I need to show the 25th...
View ArticleGet outreg2 to report AIC in summary statistics
Greetings, I am using outreg2 to create a table presenting multinomial logit results and would like to add the AIC to the summary statistics. In keeping with advice I picked up from an archived...
View ArticleProblem with forvalues command and return calculations
First, I use Stata 12 SE for Mac. This is my dataex extract to illustrate my data: input str12 acquirerisin float(statatime announcementdate set group_id datenum td dif event_window estimation_window...
View ArticleDoes 'version' command remove need for 'saveold'?
Does using the "version" command eliminate the need to use the "saveold" command? That is, if I need to make some v12 data using v14, do I have to change every save command to saveold, or will one...
View ArticlePost Estimation for Variance and standard deviation Multilevel model
Dear all, I ran some multilevel analyses. Below you can find the commands: . xtgls TotGLStressWeek Gender Workinghours Previousexp Arrivaldatemonths Age, nmk However, I need to find out both the...
View ArticleExceeded Memory for Fisher's Exact Test
I got the following error notice when trying to run a Fisher's exact test: "exceeded memory limits using exact(1); try again with larger #" Sample size is only 120, but some cell counts are 0. I...
View ArticleHow can a CFA model estimated with SEM yield an SRMR>1?
I just estimated a simple CFA model with SEM, and obtained an SRMR (standardized root mean squared residual) of 2.212 . Unless I am mistaken, it should have a maximum value of 1.0. How is this...
View ArticleFixed Effects Dummy Variables _Omitted and Best Model
Hi Stata Intellectuals, I have one more quick question on fixed effect. I have a panel data with firm level characteristics over 10 years. I am currently running a code, but all fixed effect control...
View ArticleListing observations and then saving them into a string variable
Hello dear forum members, I am seeking your help with the following task. So, I have a list of MSA (metropolitan statistical area) codes (N=104) and also a list of corresponding ZIP codes (N="a lot")....
View ArticleFun loop challenge
Dear all, I am trying to create a loop using two local arrays and numbers. Here is what I have so far: Code: svyset [pweight = trendwt], strata (nis_stratum) psu (hospid) local var1 "pneumoall pneumo...
View ArticleTesting regression coefficients using xtmixed
I use xtmixed to estimate a mixed-effects multilevel model with Code: xtmixed dep var1 var2 var3 var4 var5 var6 || clustervar, covariance(independent) Afterwards, I want to test the joint significance...
View ArticleHow to model intra-EU trade dummy variables for Gravity Model studying EU...
Hi, I am estimating a gravity model using an unbalanced country-pair panel data set, looking at European countries from 1948-2006, with about 48,000 observations. The dataset is the one used in Head et...
View ArticleCox model, PSM after Multiple imputation
Dear all, I met a problem on cox models after multiple imputation. In stata, I use mi chained to get imputed datasets. The censored time variable (dur) was used in the imputed model. When I used "mi...
View Articlecollapse of all obs vs collapse of a fraction of obs
Hello. Could anyone help me figure out why the two commands below end up differently? Each row of my dataset corresponds to a delivery in a given health facility. The variable tp_par indicates the type...
View Article