[R] ROCR data input

2010-08-17 Thread wookie
Hi there, I'm having some difficulty with the ROCR package. I've installed it fine, and the sample data works (ROCR.simple), however when I try to load my own data it complains that there is an error in prediction as the number of classes is not equal to 2. I read the data from a text file which

Re: [R] ROCR data input

2010-08-17 Thread wookie
Sorry, I'm new to R, and relatively new to statistics too so I'm still a bit unclear. The values in the post were only a sample of around 8400 rows. The label has 1 or 0 (I thought this was the two classes needed). Each label row has an equivalent probability. This is the data that I output from

Re: [R] ROCR data input

2010-08-17 Thread Claudia Beleites
Anneley, Sorry, I'm new to R, and relatively new to statistics too so I'm still a bit unclear. That's OK - everyone started some time and was new. However, it is really important to post a reproducible example here. If you are so new that you don't know how to do that exactly, you should