When you want to use by var: command you need to first sort var before using the by; however, it is possible to the by and the sort into a…
Read More
Search Results for: stata
How can I get poisson probabilities in Stata? | Stata FAQ
There is an ATS developed program called pprob that will generate a table of poisson probabilities. You can install pprob over the internet by typing search nbvargr (see How can…
Read More
How should I analyze percentile rank data? | Stata FAQ
I have to do an analysis of variance on some test scores that were given to me as percentile scores. My question is, “How should I analyze percentile rank data?”…
Read More
How can I manually generate the predicted counts from a ZIP or ZINB model based on the parameter estimates? | Stata FAQ
This page shows some examples on how to generate the predicted count from a zero-inflated Poisson or a zero-inflated negative binomial model based on the parameter estimates. Zero-inflated models allow…
Read More
How can I compute predictive margins for xtmelogit with random effects? | Stata FAQ
Let’s start off by down loading some data and running a binary mixed model with random intercepts and slopes. use https://stats.idre.ucla.edu/stat/data/hsbdemo, clear meqrlogit honors read i.female || cid: read, var…
Read More
How can I do profile analysis in Stata? | Stata FAQ
Profile analysis is performed using the manova command. The “trick” in doing profile analysis is to do transformations of the dependent variables, using the ytransform option, to allow for the…
Read More
How can I do a profile plot in Stata? | Stata FAQ
A profileplot graphs the levels of several variables for two or more groups. One can then compare the profiles of the groups to one another. The user-written a command called…
Read More
How does one do regression when the dependent variable is a proportion? | Stata FAQ
This FAQ is an elaboration of a FAQ by Allen McDowell of StataCorp. and Nicholas J. Cox of Durham University. Please see www.stata.com/support/faqs/stat/logit.html for the original. Proportion data has values…
Read More
How do I test for the linear trend of proportions? | Stata FAQ
We present three examples for three different types of data structures. Let’s first create a sample data set. Each of the examples below will be based on some version of…
Read More
How do I interpret quantile regression coefficients? | Stata FAQ
The short answer is that you interpret quantile regression coefficients just like you do ordinary regression coefficients. The long answer is that you interpret quantile regression coefficients almost just like…
Read More
