Splines in linear regression models
Parameters
Data generation
Model fitting
Visuals
True relationship between X and Y
Choose a pre-specified relationship
Linear
Piecewise linear
Quadratic
Cubic
Exponential
Sinusoidal
.. or specify it yourself:
Other parameters
Number of observations:
Residual variation (sd):
Minimum x-value:
Maximum x-value:
Hit me!
Generate data
Categorical fit
Number of categories:
.. or choose your own categories:
Restricted cubic spline fit
Number of knots:
.. or choose your own knots:
Graphical parameters
Linear fit:
Show
Hide
Spline fit:
Show
Hide
Categorical fit:
Show
Hide
Observations:
Show
Hide
True relationship:
Show
Hide
Transparency (true relationship):
Transparency (observations):