[R] Conditional piece-wise dependent regression

From: Arie <poohdov_at_yahoo.com>
Date: Mon 01 Aug 2005 - 18:17:18 EST

Hi, after reading some R docs, I couldn’t figure out how can I find the solution for the following problem, therefore I would ask this friendly list for an advice.

We’re making a least square approximation for an experiment described by the following model:

T is the time,
Y is some measured value.

>From time=0 till time=U:

Y = b + p*T
>From time=U and on (some effect added):
Y = b + p*T + q*(T-U)
>From time=V and on (some additional effect added):
Y = b + p*T + q*(T-U) + r*(T-V)

Measured: Yi, Ti pairs.
Wanted: b, p, q, r.
b and p are the same for all time ranges; q is the same for time=U and on.


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Aug 01 18:23:04 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:38 EST