[R] 3 little questions
Gabor Grothendieck
ggrothendieck at myway.com
Mon Feb 2 03:22:15 CET 2004
See ?cor.test
Also,
rowSums(outer(unique(r1),r1,"=="))
gives the number of occurrences of the elements of unique(r1)
---
Date: Sun, 01 Feb 2004 16:53:21 -0800
From: Siegfried.Macho <Siegfried.Macho at unifr.ch>
To: <r-help at stat.math.ethz.ch>
Subject: [R] 3 little questions
Dear R-helpers,
3 questions:
1. Is there a package that contains a routine for computing Kendall's W
(coefficient of concordance), with and without ties ?
2. Is there a package that contains a routine for computing Goodman' s Gamma.
3. I there a simple method for computing the number of ties as well as
their lengths within a vector fo ranks,
e.g.
>r1 <- rank(c(1, 3, 2, 3, 3, 2, 4))
gives:
[1] 1.0 5.0 2.5 5.0 5.0 2.5 7.0
which contains 2 ties with length 2 and 3.
Thanks in advance,
S.M
==============================================
Dr. Siegfried Macho
Department of Psychology
University of Fribourg
Rue de Faucigny 2
CH-1700 Fribourg
More information about the R-help
mailing list