Learn R Programming

peRiodiCS (version 0.5.0)

b_rcs_prime: Derive first derivatives of RCS

Description

function that derives the first derivative of the restricted cubic splines for a value/vector of values, given the knots

Usage

b_rcs_prime(x, knots)

Arguments

x

vector of values

knots

vector of knot locations