Thanks, that is what I was trying to do.
From: Peter Ehlers [via R]
[mailto:ml-node+3350009-943873321-216...@n4.nabble.com]
Sent: Saturday, March 12, 2011 4:27 AM
To: Anthony Seeman
Subject: Re: Kendall Theil line as fit?
On 2011-03-11 17:10, jonbfish wrote
Ehlers [via R]
[mailto:ml-node+3349445-1733968405-216...@n4.nabble.com]
Sent: Friday, March 11, 2011 06:38 PM
To: Anthony Seeman
Subject: Re: Kendall Theil line as fit?
On 2011-03-11 14:43, jonbfish wrote:
> Thanks for the response, sorry I didn't post it initially.
>
> kt.mat<-
Thanks for the response, sorry I didn't post it initially.
kt.mat <-
function(x,y,z){
for(i in 1:length(x)){for(j in
1:length(y)){z[i,j]<-(y[j]-y[i])/(x[j]-x[i])}}
return(z)}
kt.slope <-
function(x,y,z,s){
count<-0
for(i in 1:length(x)){for(j in 1:length(y)){
if(j >= i+1) {
count<-count+1
s[coun
Also called Sen's slope estimate...
--
View this message in context:
http://r.789695.n4.nabble.com/Kendall-Theil-line-as-fit-tp3344617p3348823.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://st
I found some code to compute a Kendall-Theil slope estimate and want to add
it to a scatter plot. Is there a way to make it appear like a regression fit
instead of a line that extends from the edges of the plot? I would like to
have the OLS appear as a dotted line and the KT a solid line but as it
5 matches
Mail list logo