Unable to open StatTransfer'ed files >2gb in STATA/MP v.14 64-bit.
Hey everyone, I'm new to this forum, so please forgive me if I forget any relevant information - please ask if that is the case. As the title states, I'm unable to open .dta files >2gb which I have...
View ArticleMixlogit: group() vs. id()
Dear Statalist, I am working with insurance choice dataset, where individuals choose insurance plans once a year. I have panel data, which means that I observe the same individuals choosing plans in...
View ArticleCollect information from other variables
Hi! I have the following dataset: ID Dummy _weight MatchID SizeRatio 1 1 0 4 5 2 1 0 6 4 3 1 0 6 2 4 0 1 5 0 0 6 0 2 7 0 0 Dummy = public /private We need a code that can copy the SizeRatio from the...
View ArticleFrom Mata scalar to Stata local
Dear Statalisters, I'd like to extract the maximum value of a Matrix (defined in mata) and use it in a Stata if function. Look at what I've done so far using resindex and st_store commands Code:...
View ArticleNo path from latent variable to observed variable
Hi! Im suppose to do a mediation analysis of one independent variable who affects the dependend variable in the SEM builder. When I set the medasurement component for X and Y and draw a path from X to...
View Articlesvy versus [pw=...] for regression analysis
Hello everybody, I have data from household budgets and the only available weight is a pweight. I run regression analysis and I see that running this command regress HEALTHRT i.MB02 i.AGEGROUP2...
View ArticleEstimating treatment effects, categorical outcome
Dear Statalist, I was wondering how one could estimate treatment effects in STATA if the outcome is a categorical variable (1-5, not ordered). Thank you for your consideration.
View Articlehandling 10.000 files named with 11 digit numbers
Hello. I have over 10.000 txt zipped files which I would like to unzip, convert to stata and append all in only one dta dataset. The problem is that the zipfiles's names are 11 digit number ones, with...
View ArticleFixed Effects for Unbalanced Panel
Hi Statalist, When you have an unbalanced panel including households who are observed only once, how does Stata incorporate these observations into the estimation of a fixed effects model? You cannot...
View ArticleHow to create Bar Graphs with these variables
Hi Statalisters, I am trying to create a graph like the one in the image attached. I am new with stata and I still cannot figure out how to do it. In the image attached, the blue bar stands for...
View ArticlePast values meeting a criteria
Hi, I have the code below. gen ofailureIL = 0.5* ofailureIL[_n-1] + failureIL if _n > 1 & (failuredate - failuredate[_n-1]) >365 As it stands now ofailureIL[_n-1] will return the value for...
View ArticleHow to calculate previous fiscal year industry adjusted stock returns?
Dear sir/madam, I am currently doing research on top executive turnover and for this research I need to calculate cumulative industry adjusted stock returns. My dataset is a S&P500 sample from...
View Articleset maxvar
Hi, I ran a command like below and found a problem. Can you help me to solve this? I appreciate your consideration. Jamie ---------------------------------- profileplot bmiz1 bmiz2 bmiz3 bmiz4 bmiz5...
View ArticleLinear Regression with Margins - value label eink not found
Dear All, I would like to create a conditional effect plot and a conditional profile plot. My syntax is the following: regress EHeterogamie KennenlernArt i.frau i.Pfrau c.Alter c.PAlter c.eink c.Peink...
View ArticleRegression with absorbing a large number of non-mutually exclusive categories...
Hi, I want to run a regression, controlling for a large number of categories, similar to what could be done with areg. The issues is, that each observation belongs to (exactly) two categories. Option...
View ArticleTwoway
colleagues i am pretty new in using stata. i want to draw Kernel dinsities on one graph specifying appropriate variables as well as line pattern and legend options. your assistance shall be greatly...
View ArticleSpecific SPSS syntax into Stata
Hi all, I have been thinking of how to "translate" the following piece of SPSS code into Stata syntax. Code: do if ((A eq 2) and (B ne 1)) compute C = D else if ((A ne 2) and (B eq 1)) compute C = E...
View ArticleUsing vce(hac) with nlsur
I'm trying to estimate a system of three nonlinear equations with cross-equation restrictions derived from a production function using yearly macroeconomic data. I am not a Stata expert, and I am more...
View ArticleRenaming variables using loop
Dear all, I have some data (which is a NxN-matrix) looking like that, but actually a lot more variables, all the observations are numeric ones. id A1 A3 A25 A87 A99 1 2 3 4 5 And now I would like to...
View Article