R/tpower.R

Defines functions tpower

tpower <-
function(x, t, p) {
# Function for truncated p-th power function
   return((x - t) ^ p * (x > t))
}

Try the SpATS package in your browser

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

SpATS documentation built on Nov. 10, 2022, 5:58 p.m.