Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: which -cmp- option to use for poisson model with count data?


From   "Laura R." <laura.roh@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: which -cmp- option to use for poisson model with count data?
Date   Fri, 27 Apr 2012 20:16:46 +0200

Dear Stata users

Can -cmp- be used with count data, which would normally be estimated
using -poisson- in Stata? For example, the number of experts, ranging
from 0 to 5 in the data (but theoretically limited to >0) .

As this variable would be truncated (at 0, right truncated), I suppose
I should use the option -indicator($cmp_trunc)- when using -cmp-?

For example

*---------------------------- Stata example begin---------------------

cmp (experts=x1 x2 x3, trunc(0 .)), indicators($cmp_trunc)

*------------------------- Stata example end------------------------

would this be correct?

Thank you very much for your consideration.

Laura
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index