Calculating time between dates.
Hi - I am working on a data set of children's diagnoses. I have a list of Child IDs, their DOB, and and then their diagnoses (for some children have more than one), with the date of each diagnosis in...
View ArticleDickey Fuller test problem
Hey Guys I hope you are doing well. I am trying to make Dickey Fuller test to test for unit roots and then I want to make a VAR model for growth productivity and growth export for Croatia. I have data...
View ArticleNested Class Instances not assignable
I seem to have a generic problem: if one user-created class is meant to contain an instance of another user created class, it can't be assigned. A blank member instance is created whenever the...
View ArticleTwoway plots: All texts, x-labels, y-labels are messed up
Dear Statalisters, Stata version 13.1. Update status: Code: Update status Last check for updates: 20 Jan 2016 New update available: none (as of 20 Jan 2016) Current update level: 09 Dec 2015 (what's...
View Articlefraction data
dear all i have some date related problems where i have to calculate age from death date to birth date for example death date 22/04/1928 birth date 21/02/2015 for this i used "gen age...
View Articleconverting string date to numeric and getting inconsistent result
I have a new data set with string date variable entered as DD/MM/YYYY (i.e., 05/24/1975). The inconsistent date conversion results I'm getting in Stata is that only about half the cases in the date...
View ArticleHow to calculate interim and long-run multipliers in ARDL models with...
I have calculated an ARDL(24,36) model with 1 independent variable. The data is monthly, hence the inclusion of so many lags. I am trying to calculate the interim multiplier (the cumulative effect at a...
View Articlextset using two panel variables?
Dear members I went through Stata 13 reference manuals, as well as earlier topics in this forum, before posting this question, unfortunately I could not find an answer: Data description: I am working...
View Articlemlogit multicollinearity
I am attaching a file which has 6 variables : A , B , C , D , E , F E and F are used as dependent variables in different mlogit models, while A B C D are used as independent variables in these models....
View ArticleMatching different time variables
Dear Stata user, I have data on sovereign bond returns from different countries on daily frequency. Each country has different non-trading dates and so I can't match exactly the data to one Time...
View ArticleAdding new variables within a table during regression loop
Hi, I regress different manager's return on different factors over ten years (say 2000-2010). I use outreg2 to create a table in Excel like following: eststo: reg rrf mktrf i.mgrid if year==2000...
View ArticleElasticities of QUAIDS
Dear All, I would really appreciate some help on this small problem about elasticities of QUAIDS. I am trying to obtain QUAIDS elasticities after running Poi(2012) program to estimate a 5-good demand...
View Articlemodel an extra parameter into xtreg
Hi all, have a regress equation : y= a + u_i + (b + v_i)*year + b_2*q2 + b_3*q3 + b_4*q4 + epsilon_it, i represents panel var, t represent time var the problem is how to model v_i in using stata as...
View ArticleLogistic regression on sample weighted by propensity score
Dear Statalist members! May be anyone know the syntax, how to conduct logistic regression on a sample weighted (not matched) by propensity score? E.g., for the linear regression on matched sample the...
View ArticleChoosing between xtnbreg fe bootstrap and xtpoisson fe cluster-robust
Dear Stata experts, I have been struggling with some count panel data and I would like to estimate it with fixed effects. My data shows a little bit of overdispersion (when fitted with quasi-poisson...
View ArticleGrid search in Stata
Hello everyone I am running a simple GMM estimation in stata like" gmm (y-{xb:x1 x2}) ,instruments(x1 x2)" but since the negative coefficient of x1 is not economically feasible I have to do a grid...
View ArticleCreating temporary variables (tempvar) with svmat
Dear Statalist, I am creating a simple program to graph some results of the margins command in combination with other graphs. For this I need to transform matrixes into variables, and I rely on the...
View ArticleCluster-robust SEs with survey data
I'm working with data from a clustered sample where observations were sampled with a given probability which is to be used as a sampling weight (pweight). There are two ways to obtain the correct point...
View Articlenlcom command after nlsur AIDS estimation doesn't run - no error appears
Dear all, I've trying to estimate a demand system of 7 beverages through the AIDS model using the nlsur command. It seems the program I specified works well because no error appears. After the nlsur...
View ArticleLASSO with a Gamma, Log link GLM
I am trying to run LASSO regression on a GLM model with gamma variance and a log link function but I cannot find any STATA packages that will allow me to do this. I have looked at the "lars" package...
View Article