explicit_rcs: Create a model formula with explicit knots

Description Usage Arguments Details Examples

View source: R/explicit_rcs.R

Description

Create a model formula with explicit knots

Usage

1

Arguments

data

A data.frame / data.table object

formula

A model formula which includes an rcs component, such as y ~ age + rcs(bmi, 3)

Details

Returns a model formula with the number of knots replaced by explicit knot locations

Examples

1
explicit_rcs(iris, Sepal.Length ~ rcs(Sepal.Width, 3))

thomasgstewart/tgsify documentation built on June 18, 2020, 11:10 a.m.