EconPapers    
Economics at your fingertips  
 

MultiSpline: Nonlinear Multilevel Spline Modeling Across R, Python, and Stata

Subir Hait

No xe4kt_v1, SocArXiv from Center for Open Science

Abstract: We introduce MultiSpline, a cross-platform software suite for nonlinear multilevel spline modeling implemented in R, Python, and Stata. Nonlinear relationships between continuous predictors and outcomes are common in clustered and longitudinal data from education, health, and economics research. Existing tools in each language provide the building blocks for such analyses but typically require researchers to manually combine spline basis construction, mixed-effects estimation, intraclass correlation coefficient (ICC) computation, prediction, and visualization across multiple packages and steps. MultiSpline unifies this workflow into a single interface in each language, enabling researchers to fit, summarize, predict from, and visualize nonlinear multilevel models in only a few lines of code. All implementations are freely available under the MIT license via CRAN (R, under review), PyPI (Python), and SSC (Stata), with source code on GitHub.

Date: 2026-03-07
References: Add references at CitEc
Citations:

Downloads: (external link)
https://osf.io/download/69ac6ea2101bec037459cc95/

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:osf:socarx:xe4kt_v1

DOI: 10.31219/osf.io/xe4kt_v1

Access Statistics for this paper

More papers in SocArXiv from Center for Open Science
Bibliographic data for series maintained by OSF ().

 
Page updated 2026-04-11
Handle: RePEc:osf:socarx:xe4kt_v1