Re: [R] model selection criteria in "regsubsets"

From: Thomas Lumley <>
Date: Thu, 21 Jun 2007 07:01:03 -0700 (PDT)

The calculations are in summary.regsubsets.

Sending three copies of questions like this does not increase the chance of a response.


On Thu, 21 Jun 2007, wrote:

> Hi All,
> I used "regsubsets" in package "leaps" to do the model subset selection.
> I noticed the "bic" and "cp" criterias are both included in this
> function. But seems like they are not calculated by
> "bic=-n*log(RSS/n)-(p+1)*log(n)"
> and
> "cp=(RSS/sigma_hat^2)-(n-2*p-2)"
> Could you please let me know what formula used for these two criterias?
> Thank you !
> Linda

Thomas Lumley			Assoc. Professor, Biostatistics	University of Washington, Seattle

______________________________________________ mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 21 Jun 2007 - 14:21:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Jun 2007 - 15:32:08 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.