Displaying 5 results from an estimated 5 matches for "tukeyline".
2009 Oct 09
1
Any reference to Tukeyline algorithm?
Hi,
I am using "line" function to plot the line. And I would like to understand "Tukeyline" algorithm. Since, the line function is calling the Tukeyline algorithm(which is compiled code) using foreign function interface, I am not able to look into the source code of this algorithm. Can somebody help me out, so that I can refer the same.
Thanks in advance!!!
Thanks,
Shanmukh....
1997 May 15
4
R-alpha: A Couple of Queries
...that each library
has its own frame on the search path. E.g.
> search()
[1] ".GlobalEnv" "library:base"
> library("eda")
> search()
[1] ".GlobalEnv" "library:eda" "library:base"
> ls(pos=2)
[1] "coefficients.tukeyline" "fitted.values.tukeyline"
[3] "line" "medpolish"
[5] "plot.medpolish" "print.medpolish"
[7] "print.tukeyline" "residuals.tukeyline"
[9] "smooth"...
2009 Jul 29
1
RFC: methods() and showMethods() {was "debug"}
(a new thread, on purpose)
>>>>> "RobG" == Robert Gentleman <rgentlem at fhcrc.org>
>>>>> on Mon, 27 Jul 2009 16:55:50 -0700 writes:
RobG> Hi, I just committed a change to R-devel so that if
RobG> debug is called on an S3 generic function, all methods
RobG> will also automatically have debug turned on for them
RobG>
2017 May 31
2
stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3
...}
+ R_rsort(z,n);
+ yint = 0.5 * (z[il(n, 0.5)] + z[iu(n, 0.5)]);
}
for( i = 0 ; i < n ; i++ ) {
- w[i] = yint + slope*x[i];
- z[i] = y[i] - w[i];
+ w[i] = yint + slope*x[i];
+ z[i] = y[i] - w[i];
}
coef[0] = yint;
coef[1] = slope;
}
-void tukeyline0(double *x, double *y, double *z, double *w, int *n,
- double *coef)
+void tukeyline0(double *x, double *y, double *z, double *w, int *indx, int *n,
+ double *coef)
{
- line(x, y, z, w, *n, coef);
+ line(x, y, z, w, indx, *n, coef);
}
SEXP tukeyline(SEXP x, SEXP y, SEXP...
2017 May 31
4
stats::line() does not produce correct Tukey line when n mod 6 is 2 or 3
Seriously, if a method gives a wrong result, it's wrong. line() does NOT
implement the algorithm of Tukey, even not after the patch. We're not
discussing Excel here, are we?
The method of Tukey is rather clear, and it is NOT using the default
quantile definition from the quantile function. Actually, it doesn't even
use quantiles to define the groups. It just says that the groups