# Questions tagged [piecewise-linear]

The tag has no usage guidance.

54 questions
Filter by
Sorted by
Tagged with
17 views

### How do I calculate the standard error and p value for a piecewise linear mixed model with lmer?

I have fit a piecewise spline linear mixed model with multiple knots: ...
36 views

### In hierarchical regression, the first step is not significant but later steps are

I ran a hierarchical regression comparing different models, in order of complexity. The first step was not significant (the simplest model vs a more complex model). However the next two steps were ...
27 views

### Select model in piecewise regression

How could we compare models fitted with piecewise regression that have different breakpoints? I used the code written here. In the example below, the "best" model, i.e. minimizing the residuals is ...
38 views

### Simple algorithm to detect change point in time series

Apologies if this question has already been asked, but a lot of similar questions are regarding R or complex algorithms that I don't want. I have numerous 2-dimensional time series, eacch plotting ...
84 views

### How to do a discontinuos segmented logistic regression in R?

I'm trying to do a discontinuous segmented logistic regression, something like this: https://imgur.com/ON4k1hy . The 6 breaking points are predetermined from domain knowledge. Unfortunately my ...
23 views

42 views

### Censoring linearly splined predictor in regression

I'm developing a logistic regression where one of the independent variables has a non-linear relationship to the probability of the event occurring. I have created linear splines based on this ...
304 views

### Position of knots in piecewise linear regression as 'random effects'

TL;DR: Is there some way I can do 'random knots' (where the position of the knot varies according to some group, not the number)? Full question: After obtaining experimental data, I find that one of ...
319 views

### Piecewise regression vs multiple models

Say you have a piecewise regression model with one breakpoint. Is there any difference between that and just creating a separate simple regression model for each segment of the IV?
349 views

### Understanding the Math of Segmented and Splines2 packages.

I was trying to teach myself the math behind what produces the slope and intercept of a segmented variable in the segmented package using the plant data set. My ...
216 views

### Looking for references - ReLU neural networks vs Fitting continuous piecewise linear function

ReLU activated neural networks with a linear output are continuous piecewise linear functions (CPLF). There are technuques to fit CPLF functions, so comparison of those methods seems very natural, ...
174 views

### How to adjust the parameters of a Piecewise regression model in Matlab?

I have an existent piecewise regression model correlating the parameters X and Y as follows: If X<0.1, then Y=0.744. If X>=0.1 & X<=0.8, then Y=0.842-0.977*X. If X>0.8, then Y=0.06. The ...
138 views

### Finding an inflection point between two conditions

The figure below illustrates a sample data from a numerosity estimation experiment with an uncalibrated (i.e., spontaneous) estimation condition (blue) and a calibrated estimation condition (orange). ...
102 views

66 views

### piecewise regression into a for loop [closed]

I´m trying get a piecewise regression. ...
364 views

### Model with piecewise-linear functions

I have a model which is of the following deterministic form: Y = A + B + C A, B and C are piecewise-linear functions of a, b and c, which are macroeconomic variables. I have the values (nodes, ...
278 views