search for: x_th

Displaying 1 result from an estimated 1 matches for "x_th".

Did you mean: x_t
2009 Sep 08
2
Fitting a linear model with a break point
Hello, I would like to test some data to see whether it has the shape of a step function (i.e. y1 up until x_th and then y2 where x_th is the threshold). The threshold x_th is unknown and the x values can only take discrete values (0,1,2,3,4). An example would be: data<- data.frame(x=1:20,y=c(rnorm(10),rnorm(10,10))) I was thinking along the lines of fitting some sort of piiecewise linear model which...