R/compute_resid.R

Defines functions compute_resid

Documented in compute_resid

#' @title
#' Compute residual
#'
#' @description
#' Function to compute residual
#'
#' @param a A vector
#' @param b A vector
#' @param c A vector
#'
#' @return
#' returns a residual values.
#'
#' @keywords internal
#'
compute_resid <- function(a, b, c) {

  val_1 <- mapply('-', a, b)
  val_2 <- mapply('/', val_1, c)

  return(val_2)
}

Try the CausalGPS package in your browser

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

CausalGPS documentation built on Sept. 30, 2023, 1:06 a.m.