- this is a question about the logic of splines rather than code, I wonder if you can help me better understand splines and how splines are working.
i have a curve that looks like this and I insert knots at 8 and 10
when I use -mkspline-
eg
This only generates 1 spline variable
Spline 1 = which is identical to var 1
Why does this happen ?
second question:
my understanding of a spline is that stata takes the sections of the curve i.e the points <8 and >10…
what happens to the section between 8 and 10 ?
or perhaps I haven’t understood splines corectly
i have a curve that looks like this and I insert knots at 8 and 10
when I use -mkspline-
eg
Code:
local knots_list 8 10 mkspline spline= var1, knot (`knots_list') cubic
Spline 1 = which is identical to var 1
Why does this happen ?
second question:
my understanding of a spline is that stata takes the sections of the curve i.e the points <8 and >10…
what happens to the section between 8 and 10 ?
or perhaps I haven’t understood splines corectly
Comment