Error 603 when trying to import an Excel file
Hello, I use Stata 13.1 in a network environment. I have to combine multiple excel files from certain directories on our server. (In the moment: 536 files). I wrote a routine to import the excel files,...
View ArticleInterpretation of interaction variable in PPML
Dear all, I would like to know if I can interpret interaction variables in PPML the same way as in OLS. In PPML the coefficients of any independent variables entered in logarithms can still be...
View ArticleDichotomizing a Factor Variable
Dear All, Hi, I have a question about dichotomizing a factor variable (or a variable that contains non-integer values). I am currently using -prchange- from spost9 after conducting a logistic...
View ArticleDecomposing differences using nldecompose for nonlinear model
I am using nldecompose for decomposing differences in the outcome variable for nonlinear model. Has anyone worked with this command, may I know how you compute the contribution of each variables...
View ArticleSample Selection Bias in survey-based studies
Dear experts, in my previous post I explained my research proposal a little more in detail. Since I have evaluate certain firm resources upon firm performance, I find a "standard" OLS regression...
View ArticleRegression with continuous dependent variable with ordinal independent variables
Hello, Given a dependent continuous variable and multiple independent ordinal variables (such as from a likert scale), how do I fit a regression model? I have seen a similar forum for R but I am not...
View ArticleForce align two x axes to same scale
I am working with time series data (using Stata 14.0) and trying to show three scatterplots on the same graph. They use two different, but closely related, horizontal axes. I would like to force align...
View ArticleRequest help with interpreting Oaxaca command results
Hello Statalist, It would be great if I can get some help understanding the results of the Oaxaca command. Due to confidentiality reasons, I am unable to provide the exact results or variables but...
View ArticlePanel data: determining observation totals for each participant
Hi, I need to determine the total number of days an event occurred for each person, where the event occurred differing number of times per participant. How could I go about this? Data example:...
View ArticleRobust SEs with XTPROBIT - cannot calculate - bug(?)
There seems to be a bug in using time series variables with xtprobit/xtlogit and robust SEs. It has been reported and discussed before here: http://www.statalist.org/forums/foru...bit-or-xtlogit...
View ArticleSaving level 1 and level 2 variance from a MLM as new variables
Dear all I am trying to use level 1 and level 2 variance from a MLM for a new calculation (to calculate a 'shrinkage factor'). Intuitively the solution is just to copy the results into a formula;...
View ArticleStock return cycles
Hello, I am sort of new to stata and as a student project I want to show the 4 year cycles of weekly S&P 500 index return (presidential cycles) now the model that I thought I can use is R = b +...
View Articlemultiplying and summing quantity and price for 112 items
I have a dataset which includes consumption quantity and price per unit for 112 food items. Therefore, each observation has 112 variables for quantity and 112 variables for price. I want to calculate...
View Articlemoderation analysis - index variable - negative values
Hi! down votefavorite I'm trying to run a moderator analysis to test whether different forms of governmental social security can cause a weakening effect between poverty and risk for TB. My syntax...
View Articleregression and collinearity
I am still working with monthly (excess) returns and several risk factors: id ymdate excess_ret mom rmw cma 492 432 6.714 .56 1.02 -1.78 975 433 -9.23 .58 -.03 3.45 2139 434 -1.78 -1.89 1.4 -.95 .......
View ArticleThe Likert scale?
Hi there, My name is Tom and I am really new to Stata and I am looking for a brianbox to help me figure something out! I am sure this question will be most mundane for many of you out there! I am...
View ArticleReshape - passing from wide to long data
Dear all, I have a wide dataset, in the following form: country y15 y14 y13 y12 Albania 36 33 31 33 Armenia 35 37 36 34 Austria 76 72 69 69 Azerbaijan 29 29 28 27 Belarus 32 31 29 31 The y15, y14, ......
View ArticleProbit regression: error "outcome does not vary" even if...
Hello, I am struggling with a problem in my probit regression: probit fert age married activity edu fullt job S N E C if nativity==1 & disab==0 [pweight=perwt] I get the message "activity omitted...
View ArticleGraphs inside a log file
Dear all, I have read around that there is some trouble in adding graphs in log files (or whichever other format which combines text&images in stata results): for example, that you can do something...
View ArticleANOVA and Post-hoc estimates using data including multiple imputations
Dear all, once more, multiple imputation is the bane of my existence I hope somebody can help me with what started out as a small little calculation. I couldn't find much info on the web and the one I...
View Article