# Questions tagged [piecewise-linear]

The tag has no usage guidance.

75 questions
Filter by
Sorted by
Tagged with
48 views

### Manual specification of knots vs bs() for Piecewise regression

I am learning how to specify and plot piecewise regressions and have encountered a confusing situation. Namely, I have specified the knot for a piecewise regression using 2 methods: (1) manual and (2) ...
• 13
483 views

### Understanding spline transformation and regression coefficients

I do not understand properly what a spline does even in a simple situation of a piecewise regression, and I need some help. Consider the following basic example: ...
• 201
1 vote
216 views

### How does Multivariate Adaptive Regression Splines (MARS) consider the minimum number of observations between knots in the forward pass?

I try to explain my question with a simple example. Let's say we have two variables $x_1$ and $x_2$. At the first two stages of the forward pass, effects of $x_1$ with a knot at $a_1$ and $x_2$ with a ...
30 views

### Custom contrasts in piecewise mixed effects models

I have longitudinal data from a two-group RCT in which the primary outcome was assessed at baseline, each week during the intervention, post-test and 5-month follow-up (6 times total). I am modeling ...
• 21
227 views

• 1
391 views

1 vote
99 views

### segmented piece wise linear regression problem?

I want to get a piecewise linear regression model with the function "segmented". ...
• 151
1 vote
699 views

### What is the difference between linear interpolation and piece-wise linear interpolation?

I'm familiar with linear interpolation. I tried to search some details about piece-wise linear interpolation but failed to understand this method. Can someone explain the difference between these two ...
• 429
3k views

• 121
4k views

### Test for the significance of the effect of an intervention in a time series

I am looking for the best approach to test for the significance of the effect of an intervention that occurred at a known time on a time series data. Using a toy dataset as an example, I have come up ...
• 542
373 views

### "Branching Stick" Regression

With piecewise, or so-called broken-stick regression it is possible to fit two lines to data, But what if I wanted to fit data to two lines, one main and one branch which connects to a primary line ...
• 1,032
1 vote
450 views

### Can a Piecewise Linear Regression Approximate a Neural Network?

I have a piecewise linear regression model that performs quite well (CVd) on subsets of a small data set (Ns between 30 and 90 for the subsets, with a total of 222 records). So there are separate ...
• 11