R/myf.R

Defines functions myf

Documented in myf

#' myf
#'
#' @param x
#' @param coef
#'
#' @return
#' @export
#'
#' @examples \dontrun{myf(0, coef=tmp$coefficients[,"Estimate"])}
myf = function(x, xk, coef){
  coef[1]+coef[2]*(x) + coef[3]*(x-xk)*(x-xk>0)
}
arukshpatel/MATH4753.ArukshPatel.SP22 documentation built on March 19, 2022, 3:38 a.m.