Compute an univariate spline regression.

Parameters:
See dedicated page for more information.
See dedicated page for more information.
The R_Spline action performs univariate spline regression using a numeric predictor variable (x) and a target variable (y). It fits a smooth, non-linear curve to the data by applying piecewise polynomials joined at "knots." The result includes a spline regression plot, performance metrics (RMSE, R²), and a serialized model file.
x)y)Example Input Table:

📈 Plot Image:
records/Spline_y.png – spline regression curve
💾 Model File:
records/Spline_y_by_x_A.rModel – serialized R model for future use
Log:
Contains:
Upload the File
Load your dataset using the readCSV action and connect it to R_Spline.

Placeholder: screenshot showing readCSV → R_Spline → RunToFinishLine
Configure Parameters
Set the predictor, target, and spline settings. Enable model saving if needed.

Run the Pipeline
Execute the pipeline.
Review Outputs:
Log Tab:

Records Tab:
Spline_y.png: Final spline plotSpline_y_by_x_A.rModel: Serialized model fileLog Summary:
RMSE = 0
R² = 100
Adjusted R² = 100
Knots: [1, 5, 10]
Formula:
y ~ s(x)
Scientific Data Modeling
Fit smooth experimental curves in physics, chemistry, or engineering datasets.
1D Time-Series Smoothing
Model non-linear temporal trends (e.g., temperature over time).
Feature Engineering
Transform non-linear signals into smooth trend-based features for use in other models.
| Error | Cause | Solution |
|---|---|---|
ggsave(): Cannot find directory |
Output directory doesn't exist | Use simple folder like results under records/ |
Failed to save Model File |
Invalid idxSaveDir path |
Ensure records/results/ exists |
Not enough data to run a model |
Too few rows in dataset | Minimum 3 rows, ideally ≥ 10 |
Manual Knots:
To manually define knots, set idMethod to manual and define them in idmKnots.
Avoid Folder Errors:
Don’t use spaces or special characters in idxSaveDir.
Perfect Scores Warning:
If RMSE = 0 and R² = 100, your spline may be overfitting—especially with small datasets.
