R/residual.cases_function.R

Defines functions residual.cases

Documented in residual.cases

#' @title residuals.cases
#' @description Computes the residuals for when X is the cumulative cases. Used internally.
#' @param Yhat The fitted regression line.
#' @param Y The cumulative births.


residual.cases <- function(Yhat,Y){
  ## when X is cumcases can do standard calculation
  Z <- Y - Yhat
  return(Z)
}

Try the tsiR package in your browser

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

tsiR documentation built on Jan. 21, 2021, 1:06 a.m.