Hi, If the relation between y and x is piecewise linear, the package "segmented" can be used to model it. It works pretty well.
My situation is a little different: y and x are both I(1). Is there an R-package dealing with this situation? If not, is there an econometrics paper on this issue? Some papers deal with the case in which the relation between x and y changes at a certain time point, but my case is different- the relation between x and y changes when x exceeds some break point. Thanks! [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.