Learn R Programming

ggrcs (version 0.4.3)

Draw Histograms and Restricted Cubic Splines (RCS)

Description

You can use this function to easily draw a combined histogram and restricted cubic spline. The function draws the graph through 'ggplot2'. RCS fitting requires the use of the rcs() function of the 'rms' package. Can fit cox regression, logistic regression. This method was described by Per Kragh (2003) .

Copy Link

Version

Install

install.packages('ggrcs')

Monthly Downloads

831

Version

0.4.3

License

GPL-3

Maintainer

Qiang LIU

Last Published

February 12th, 2025

Functions in ggrcs (0.4.3)

ggrcs

ggrcs
singlercs

singlercs
predata.lrm

predata.lrm
ggrcs2

ggrcs2
predata

predata
predata.coxph

predata.coxph
smoke

A data on age and smoking rates.
predata.ols

predata.ols