Learn R Programming

utilityFunctionTools (version 0.1.0)

tpower: Truncated p-th power function. Helper function for creating the B-Spline basis (Code by Paul Eilers, Package JOPS, http://statweb.lsu.edu/faculty/marx/JOPS_0.1.0.tar.gz)

Description

Truncated p-th power function. Helper function for creating the B-Spline basis (Code by Paul Eilers, Package JOPS, http://statweb.lsu.edu/faculty/marx/JOPS_0.1.0.tar.gz)

Usage

tpower(x, t, p)

Arguments

x

Function value.

t

Point of truncation.

p

degree of the truncated polynomial function.

Value

Returns a piece-wise defined basis functions for x > t.

Examples

Run this code
# NOT RUN {
tpower(1, 2, 3)
# }

Run the code above in your browser using DataLab