R/df.residual.fRegress.R

Defines functions df.residual.fRegress

Documented in df.residual.fRegress

df.residual.fRegress <- function(object, ...){
  dfm <-   object$df
  if(is.null(dfm))
    stop("'object' does not have a 'df' component.")
#
  nobs <- length(object$wt)
  dfr <- nobs-dfm
  attr(dfr, 'nobs') <- nobs
  attr(dfr, 'df.model') <- dfm
  dfr
}

Try the fda package in your browser

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

fda documentation built on Sept. 30, 2024, 9:19 a.m.