Calculates the Mallows Cp criterion of a lm object
object passed from
constant multiplier for the Cp term itself
constant multiplier for the closeness of Cp to p.
In the model selection criteria for
TMC, we require a single quantity
to be minimized or maximized, but the common interpretation of Cp is that
we want Cp to be "small and close to p." Therefore, we have introduced
b which allow the user to customize, if
desired, the relative weights of the two criteria. By default, the function
simply calculates the raw Cp value, and therefore the closeness of Cp
to p is of no consequence. However, if one wishes the final criterion value
(which will eventually be ranked in
TMC) to take closeness
to p into account as well, one can easily modify the MSC function in
msc.List argument to adjust the constant multipliers. The
final value returned will be a * Cp + b * |Cp - p|.
a * Cp + b * |Cp - p|
Andrew K. Smith
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.