EconPapers    
Economics at your fingertips  
 

RCSPLOT: Stata module to produce restricted cubic spline plot with matched model and plot ranges, optional histogram overlay, shaded confidence bandwidth adjustable opacity, survey support, and outlier trimming

Zumin Shi ()
Additional contact information
Zumin Shi: Qatar University

Statistical Software Components from Boston College Department of Economics

Abstract: rcsplot fits a restricted cubic spline (RCS) model for a single exposure variable and plots the resulting dose-response curve with a confidence band. By default, the modeled data and the plotted x-range are identical: both are defined by the trim percentile window (1st to 99th percentile of the exposure). This ensures the plot shows exactly the data on which the model was fit, with no gap between the modeled sample and the plotted region.

Language: Stata
Requires: Stata version 16
Keywords: graphics; cubic splines (search for similar items in EconPapers)
Date: 2026-10-04
Note: This module should be installed from within Stata by typing "ssc install rcsplot". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/r/rcsplot.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/r/rcsplot.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459920

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2026-10-16
Handle: RePEc:boc:bocode:s459920