R/MortSmooth_tpower.R

MortSmooth_tpower <-
function(x, t, p){
  ## Input:
  ## x = abcissae of data
  (x - t) ^ p * (x > t)
  ## (x-t)^p gives the curve
  ## (x>t) is an indicator function; it is 1 when x>t
  ## and 0 when x<=t, i.e. before each knot
}

Try the MortalitySmooth package in your browser

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

MortalitySmooth documentation built on May 2, 2019, 6:07 a.m.