Learn R Programming

plotRCS (version 0.1.4)

Plot Restricted Cubic Splines Curves

Description

Simple drawing of restricted cubic spline (RCS) curves through 'ggplot2' package from a linear regression model, a logistic regression model or a Cox proportional hazards regression model. This method was described by Harrell FE (2015) .

Copy Link

Version

Install

install.packages('plotRCS')

Monthly Downloads

41

Version

0.1.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Rongrui Huo

Last Published

April 6th, 2023

Functions in plotRCS (0.1.4)

print.rcsplot

Print rcsplot
knot

Location of knots for RCS
rcsplot

Plot restricted cubic splines curves
cancer

Liver cancer data