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 Oct. 16, 2024, 9:06 a.m.