xtile, both nquantiles() and cutpoints() cannot be specified
Hey community, when I try to compute deciles of a variable based on the cutpoints of another variable, I just get the following message: xtile decile = cumul, nq(10) c(pt3531) both nquantiles() and...
View Articleesttab: Adding Chi2 statistics for each outcome category after mlogit
Hi all, When using esttab after mlogit, is it possible to add the chi2 statistics and p-value for each outcome category? Thanks.
View ArticleMerge data from different rows
Dear all, This question might be really basic for most of you guys. My data takes the following form: Observation v_1 v_2 v_3 v_4 v_5 v_6 v_7 v_8 Laura 12 10 13 Laura 9 7 Peter 10 12 14 17 19 20 Peter...
View ArticleGrouping data by two variables
Hi there, It might be a trivial question, but I have been searching and can't find a satisfying answer. I have import data from 9 years, 85 importing countries, 5000 sub-sectors and its corresponding...
View Article“Mata run-time error” when executing --xtivreg2-- with clusters
Hi, everyone. I encountered a problem when I wanted to run a Panel IV estimation using user-written --xtivreg2-- command with cluster specified. The software told me that there was a "Mata run-time...
View Articlestandard errors of the prediction after xtmixed, cov(unstructured)
Dear Stata Users I have a question how to compute confidence intervals of the prediction from the three-level model which takes into account the fixed as well as the random effects. My model is as...
View ArticleTesting the generated sigma's of the Markov model for significance, how does...
Hello everybody, I am working with the Markov switching model in Stata 14 for my thesis. I managed to create most output, thus the constants(mean), sigma's and probabilities of state changes which I...
View ArticleRunning product panel data
I'm trying to compute a running product variable with panel data. I'm using generate runprod = w in 1 bysort CUSIP (Date): replace runprod = runprod[_n-1]*w if _n>1 but this only computes the...
View Article"Conformability error" while using xsmle
Hi Statalist, With Stata /SE 14.1, I'm using xsmle with a fixed effects regresson model. When the command (xsmle dv iv i.year, model(sar) wmatrix(contig_county) vce(robust) noeff fe) runs, Stata...
View ArticleFixed-Effects Analysis: Question regarding interaction term
I am conducting a fixed-effects analysis with a three-wave panel data set. I am regressing wage on participation in an educational training program. However, I am also interested if the Impact of...
View ArticleGenerating return series for timeseries data
Hello, I'm using timeseries data and want to generate a return series. The return is supposed to be calculated on the data point that is at least 3 seconds away from this datapoint. You'll see this in...
View Articleadjustment for multiple comparison for the logrank test
Dear Stata list I am comparing the 4 treatment over time. i did a logrank test to see the strata (0,1,2,3) are equality.( which is significant) also so i did logrank test for pairwise (0 vs1, 0vs2,...
View Articleanalyzing mediation effect with a bootstrap
Hi everyone, I'm trying to run a bootstrap to analyze whether a variable that is considered as endogenous mediates two independent variables. Since my DV is a censored variable with different censoring...
View ArticleHausman and goodness of fit for xtpoisson
Hi! 1) I'm having trouble conducting a Hausman-test for my xtpoisson, getting the respons: chi2(37) = (b-B)'[(V_b-V_B)^(-1)](b-B) = -4631.45 chi2<0 ==> model fitted on these data fails to meet...
View Articleabsorbing more than two variables in a regression
Hello Would anyone know how to absorb more than two factor variables in a regression? I tried as below but it did not work Code: . areg d_pc i.diasem##i.turno i.anomes, absorb(mun_res codestab)...
View ArticleMcElroy's R-Squares for SUR with system-wide constraints
Hi, I have a trouble with constructing the McElroy's Goodness of Fit statistics for the seemingly unrelated regressions with system wide constraints. I have three equations, whose vector of explanatory...
View ArticleProblems with precision
Hi, I've got a precision problem with optic cup to disc ratio (a clinical measure of nerve tissue, > 0.5 means glaucoma is a possibility). It's normally recorded to 1 dp but borderline cases can be...
View Articlevariance correction for Sandwich estimators.
I'm fitting a marginal logistic model for clustered data and have a question about the variance multiplier for the robust variance. my understanding is that I need to specify the nmp option in xtgee to...
View ArticleConverting Long to Wide - How to grab and return a string variable
Hello all, I am analyzing loan performance data which is in a long format. I'm trying to convert to wide but first I need to put some of the other variables in a proper context. There are a couple...
View ArticlePPML: checking after estimating by PPML
I would like to know which diagnostic tests should I use after estimating by PPML. And I have a question when I estimate by PPML, why does it exclude observations???
View Article