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 on April 23, and its replacement, is already up and running.

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

Re: re: st: Package -r2c- now available in SSC

From   Nick Cox <>
Subject   Re: re: st: Package -r2c- now available in SSC
Date   Tue, 5 Feb 2013 18:46:44 +0000

There is generic discussion at

FAQ     . . . . . . . . . . . . . . .  User-written programs and Stata version
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        7/11    I have a certain version of Stata and have come
                across a user-written program that is apparently
                written for a later version of Stata. What are
                my options?

In a nutshell, the question is whether -r2c- really needs 12.1 or was
just developed under 12.1. You could live dangerously and clone the
program with a different -version- statement, but at your own risk. I
make no recommendations except suggesting that you read the FAQ above
if interested.

I note in passing that -r2c- evidently feels free to use the variable names

mu mumean wt _est_full counts alpha

so that it will -drop- any previous instances and then overwrite them
with new ones. This is not documented so far as I can see. Correct me
if I am wrong, such practices are widely regarded as dangerous Stata
programming style. Some of these names look highly likely to appeal to
people fitting count models.


On Tue, Feb 5, 2013 at 5:38 PM, Simon Falck <> wrote:
> The -r2c- package is only available for users of Stata 12.x.
> I would be great if this interesting package will be made accessible to users of previous Stata versions (I am a user of Stata 11.2). To the wish list.
> Simon
> -----Original Message-----
> From: [] On Behalf Of Ariel Linden, DrPH
> Sent: den 5 februari 2013 17:00
> To:
> Subject: re: re: st: Package -r2c- now available in SSC
> That is very helpful information, Joe... thanks!
> Date: Mon, 4 Feb 2013 08:06:49 -0500
> From: Joseph Luchman <>
> Subject: re: st: Package -r2c- now available in SSC
> Hi Ariel,
>   Certainly.  To my understanding, -countfit- is mainly helpful for selecting a count model and uses the information criteria and predicted probabilities to do so.
>   I see the -r2c- as useful mainly for explanatory purposes following model selection and estimation and, although there is a statistic reported for negative binomial models (i.e., the DP r-square) that is intended to compare models, -r2c- is not intended for model selection purposes (though it can be used for that purpose if the analyst desires).
>   The indexes reported are all r-squares (of different flavors, though several lack properties such as "boundedness" between 0-1, that an r-square should possess) the recommended statistic, the deviance r-square is based on the model log likelihood and so it uses the same information as the AIC and BIC reported in -countfit-.  For what it's worth, the -r2c- also incorporates probability weights, an exposure/offset (both in the main count model, and the inflate model for zero-inflated models), and incorporates more of Stata's built-in count models (truncated counts, generalized negative binomial).

*   For searches and help try:

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