Quantcast
Channel: Statalist

How to define 'not yet treated' control cohort using xtevent

Hello, I am using the xtevent package to undertake an event-study under staggered adaptation (15 yearly time periods across 150 units of analysis). The xtevent package allows for estimation under...

View Article


Error: "unable to allocate real" when trying to fit a mixed...

Hi, I'm trying to fit a mixed effects logistic regression model with nested random effects (patient nested within clinic), with the following code: melogit outcome_var exposure1_var i.exposure2_var...

View Article


_natscale produces values that are greater than the min and less than the max?

Hi All, I am getting strange results from _natscale where the r(min) is larger than the #_min and r(max) is smaller than #_max. I've tried changing the #_n -- which sometimes works.... First, does...

View Article

Request for irf code in nardl model framework

good morning all stata experts and users i am looking for the help. i used the NARDL model in my study, and from the model, i was not able to produce an IRF graph. i only got code which produces a...

View Article

Title for categorical axis

Posting this because it's taken a few hours for the penny to drop, and maybe it will help someone or could be put in documentation. I made a box plot over(month) which looks fine except the "x" axis is...

View Article


mlogit postestimation: "system limit exceeded - see manual...

Hi everyone I have an error message that I don't really know how to interpret. I want to estimate a multinomial logit model and afterwards I would like to estimate average marginal effects. This is...

View Article

Sample Size

Dear All, I have 5 independent variables in my model, most of which have 15 yearly data points. I'm I justified to run this model? Of course, the data conforms to all CNLRM assumptions. Provide...

View Article

Conditional marginal effects with arcsinh-linear

Hello! I have a specification arcsinh-linear with dummy variable as regressor (triple interaction between 3 categorical variable). How can I compute conditional marginal effects: margins...

View Article


Using table and collect command for 6 outcomes - help with loop please!

Hello! Jeff Pitalbo from Stata very kindly helped me with getting row %s using the code below. I need to replicate this for 6 binary outcomes and am getting stuck. I would be grateful for assistance...

View Article


Using meta esize for meta- analysis: help with graph manipulation please!

My stata command looks like this- meta forestplot _id totalss _plot _esci if std_mono==4, random(dlaird) sort(_meta_es) subgroup(std_dual) transform("Mean Difference": identity) columnopts(_esci,...

View Article

a lognormal distribution fitting given empiric values (mean, 95th percentile)

Hello I ask and help to draw a lognormally distributed variable from a given mean (5.3) and 95 percentiles (11.3)

View Article

Drop missing

I may be missing something but let me ask:? Is there a way to drop string variables with a single command? I have a data set with a large number of split variables that I don't need. I can delete them...

View Article

Best approach for creating "separate" indices using PCA

Good morning everyone, I am working on constructing three social skills indices—communication, understanding, and engagement, the global macro would be like these: Code: global com qs1 qs2 qs3 global...

View Article


Sum over nth observations

Hello Statalisters - I know there is probably an easy way to do this, but for the life of me I cannot figure it out. I have a dataset that has daily air pollution values for a given person (in long...

View Article

What kinds of Commands should I use for the exact Gini coefficient?...

Hello, all! What kinds of Commands should I use for the exact Gini coefficient? (inequal7, ineqdeco and ainequal) What is the difference in Gini coefficient between the ineqdeco and other commands?...

View Article



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>