lin.spline: Linear Spline

Description Usage Arguments

View source: R/lin.spline.R

Description

This function fits a linear spline of Y on X and returns predicted values

Usage

1
lin.spline(Y, X, knots = 4, space)

Arguments

Y

A vector of outcomes

X

A vector of predictors

knots

The number of knots in the spline

space

A vector of X values at which to predict


samuelhigbee/myRtools documentation built on Sept. 25, 2021, 1:26 a.m.