[R] Correlation of ranks of labels?

2009-11-04 Thread S. Nunes
Hi, I have two ranks of labels (strings) representing user preferences of colors. For instance, here is a simple example with 4 preferences for each user: > rank1 [1] "red" "blue" "green" "black" > rank2 [1] "white" "gray" "black" "blue" How can I compute Kendall's Tau for this scenario? T

[R] Bug in hist() when working with Dates ?

2009-06-01 Thread S. Nunes
Hi, It seems that hist() has a buggy behavior when breaking over "days". The bug can be reproduced in a few steps: > d=data.frame(date=c("2009-01-01", "2009-01-02", "2009-01-02")) > d$date=as.Date(d$date) > d$date [1] "2009-01-01" "2009-01-02" "2009-01-02" > h=hist(d$date, "days") > h$count [1]

Re: [R] Histogram + % of cases for a given criteria

2009-05-14 Thread S. Nunes
te my measures and see how each one impacts the success rate. My first idea was to have a histogram for each measure superimposed with the % of success for each bar. I am open to suggestions on how to address this. Thanks again, -- Sergio Nunes 2009/5/14 Jim Lemon : > S. Nunes wrote: >> >>

[R] Histogram + % of cases for a given criteria

2009-05-13 Thread S. Nunes
Hi all, I am doing some explorations using a dataset with the following structure (id, value, flag). For instance: a, 2.2, 1 b, 3.0, 1 c, 2.9, 0 d, 3.1, 1 ... I have plotted a standard histogram using a simple command like: hist(data$value) My question: I would like to superimpose a line ([0%-

[R] Histogram + % of cases for a given criteria

2009-05-13 Thread S. Nunes
Hi all, I am doing some explorations using a dataset with the following structure (id, value, flag). For instance: a, 2.2, 1 b, 3.0, 1 c, 2.9, 0 d, 3.1, 1 ... I have plotted a standard histogram using a simple command like: hist(data$value) My question: I would like to superimpose a line ([0%-

Re: [R] Measuring dispersion

2008-06-17 Thread S. Nunes
orov-Smirnov test). > > > --- On Tue, 17/6/08, S. Nunes <[EMAIL PROTECTED]> wrote: > >> From: S. Nunes <[EMAIL PROTECTED]> >> Subject: [R] Measuring dispersion >> To: [EMAIL PROTECTED] >> Received: Tuesday, 17 June, 2008, 7:56 PM >> Hi, >> >> I&

[R] Measuring dispersion

2008-06-17 Thread S. Nunes
Hi, I'm looking for a function to measure the dispersion of a set of values ranging from 0 to 1. This function should be 0 if all the values are evenly spaced within the interval and it should be > 0 if values are clustered. The more clustered the values are, the higher should the function be. An