This is the only vignette of the package BsplineQuantRegGui. Since Shiny applications are best documented with pictures, and to limit the size of the package, we present all the interactive features in this single vignette. All functionalities are also described in the README.
In this vignette, we show how to add and remove knots to define the spline.
Two sets of knots exist together: - The set of regularly spaced knots auto knots, - The set of manual knots. These two sets are joined dynamically to form the full set of knots used by the regression.
The number of auto knots can be changed at any time, this setting applies only once the “auto knot” button is pressed, when the data are defined or loaded.
It is possible to remove knots from both auto and manual sets.
Manual knots are added when entering the mode “add knots”. Rules: - it is not possible to add an already existing knot - One can remove all manual knots at once - There is no difference in the regression between an “auto not” and a “manual knot”
Convexity constraint (Conv = U)
Initial set of knots
Click on the Remove selected knot button several times to remove the selected knot and the next ones. After each removal, the next knot is automatically selected.
One knot is selected
Click on the Add knot button to enter the manual addition mode. The button label changes to Stop while the mode is active.
knots are removed
If needed, reduce the number of auto knots (for example to 4). The change takes effect after pressing Set auto knots.
‘Add Knot’ is selected
add manual knots
You can add more knots and run again to see the effect on the fitted curve.
regression curve with manual knots
Regression curve with more knots