R/Cp.lm.R

`Cp.lm` <-
function(object, a = 1, b = 0, S2, ...){
  a * (crossprod(object$residuals, object$residuals)/S2 - length(object$residuals) +
  2*length(object$coefficients)) + b * (abs(crossprod(object$residuals, object$residuals)/S2 -
  length(object$residuals) + length(object$coefficients)))
  }

Try the CombMSC package in your browser

Any scripts or data that you put into this service are public.

CombMSC documentation built on May 2, 2019, 2:32 p.m.