Hi
Your post is rather screwed.
>
> [R] how to do piecewise linear regression in R?
Maybe segmented?
Regards
Petr
>
>
> Dear all,
> I want to do piecewise CAPM linear regression in R:
> RRiskArb???Rf = (1?????)[??MktLow+??MktLow(RMkt???Rf)] + ??[??Mkt
High > +??Mkt High(RMkt ???Rf )]
>
> where ?? is a dummy variable if the excess return on the value-weighted
> CRSP index is above a threshold level and zero otherwise. and at the
same > time add the restriction:
>
> ??Mkt Low + ??Mkt Low ?? Threshold = ??Mkt High + ??Mkt High ??
Threshold> to ensure continuity.
> But I do not know how to add this restriction in R, could you help me on
this?> Thanks a lot!
> Eunice
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.