MortSmooth.tpower {MortalitySmooth}R Documentation

Truncated p-th Power Function

Description

This is an internal function of package MortalitySmooth which constructs a truncated p-th power function along an abscissa within the function MortSmooth.bbase

Usage

MortSmooth.tpower(x, t, p)

Arguments

x Vector for the abscissa of data.
t Vector of truncation points.
p Degree of the power.

Details

Internal function used in MortSmooth.bbase. The vector t contains the knots. The simplest system of truncated power functions uses p = 0 and it consists of step functions with jumps of size 1 at the truncation points t.

Author(s)

Carlo G Camarda

References

Eilers and Marx (2004). Splines, Knots, and Penalties. Unpublished manuscript.

See Also

MortSmooth.bbase.

Examples

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)

[Package MortalitySmooth version 1.0 Index]