On Jun 20, 2013, at 16:21 , Annette Timm wrote:

> Hi All
> I am having some trouble making a test for linearity of my passing bablok 
> regression.As far as I am concerned i need to make cusum test for linearity 
> to get a p-value. I can make a cusum plot, but I can not figure out how to 
> test for linearity.
> I hope that my question is clear and that someone can help me.Thanks
> -AT                                     
>       [[alternative HTML version deleted]]
> 

Is this an R question? Anyways:

According to ideology (the maths of the P-B paper is heuristic at best),
the cusum test is equivalent to a two-sample Kolmogorov-Smirnov test, so you 
should be able to either use ks.test as is, or, with the appropriate scaling, 
feed the max(abs(cusum)) to pkstwo (which can be lifted from the sources of 
ks.test).

-- 
Peter Dalgaard, Professor
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd....@cbs.dk  Priv: pda...@gmail.com

______________________________________________
R-help@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.

Reply via email to