This is an internal function of package
constructs a truncated p-th power function along an abscissa
within the function
vector for the abscissa of data.
vector of truncation points.
degree of the power.
Internal function used in
MortSmooth_bbase. The vector
t contains the knots. The simplest system of truncated power
p = 0 and it consists of step functions with
jumps of size 1 at the truncation points
Carlo G Camarda
Eilers P. H. C. and B. D. Marx (2010). Splines, Knots, and Penalties. Wiley Interdisciplinary Reviews: Computational Statistics. 2, 637-653.
1 2 3 4 5 6 7 8 9
x <- seq(0,1,length=100) f1 <- MortSmooth_tpower(x=x, t=0.1, p=3) f2 <- MortSmooth_tpower(x=x, t=0.2, p=3) f3 <- MortSmooth_tpower(x=x, t=0.3, p=3) ## Truncated 3rd power functions equally-spaced plot(x, f1, t="l", main="Truncated 3rd power functions equally-spaced") lines(x, f2, col=2) lines(x, f3, col=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.