tpower: Truncated p-th power function. Helper function for creating...

Description Usage Arguments Value Examples

View source: R/HigherOrderRiskPreferences.R

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

1
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

1
tpower(1, 2, 3)

utilityFunctionTools documentation built on March 29, 2021, 5:06 p.m.