[R] [R-pkgs] ROCR source code now available on github

2012-05-05 Thread Tobias Sing
Dear all, the commented source code for the ROCR package (http://cran.r-project.org/web/packages/ROCR) is now available on github -- feel free to fork, add improvements, and contribute back! https://github.com/ipa-tys/ROCR Kind regards, Tobias ___

Re: [R] pipe data from plot(). was: ROCR.plot methods, cross validation averaging

2009-09-24 Thread Tobias Sing
Message-ID: 4aba1079.6d16.00d...@gw.dec.state.ny.us Content-Type: text/plain; charset=US-ASCII Dear R-help and ROCR developers (Tobias Sing and Oliver Sander) - I think my first question is generic and could apply to many methods, which is why I'm directing this initially to R-help as well

[R] Writing Reports from R in Microsoft Office Open XML format (follow-up)

2009-09-18 Thread Tobias Sing
to wrap it all up. There is also a Docbook-based version that uses R extensions to Docbook for authoring structured documents.  D. Tobias Sing wrote: Dear all, has someone implemented functionality for writing reports from R in Office Open XML format (*), similar to what odfWeave does

Re: [R] Writing Reports from R in Microsoft Office Open XML format (follow-up)

2009-09-18 Thread Tobias Sing
a file through R). -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: Duncan Temple Lang [mailto:dun...@wald.ucdavis.edu] Sent: Friday, September 18, 2009 11:00 AM To: Greg Snow Cc: Tobias

Re: [R] Strange error with ROCR

2009-08-04 Thread Tobias Sing
Is the probability of the true label the best prediction to feed to the ROCR package, or is it better to use the decision.value Since AFAIK they are related by a monotonous transformation, both approaches should lead to the same ROC curve, shouldn't they? (not tested) On Tue, Aug 4, 2009 at

Re: [R] ROCR package question

2009-07-25 Thread Tobias Sing
Waverley, use @ (instead of $) to extract the slots from the performance object (it's S4 class system). HTH, Tobias On Sat, Jul 25, 2009 at 8:20 AM, Waverleywaverley.paloa...@gmail.com wrote: I use ROCR to plot multiple runs' performance.  Using the sample code as example: # plot ROC

Re: [R] ROCR package question

2009-07-25 Thread Tobias Sing
Waverley, see help('performance-class') for a description of the slots. Your AUCs will be in p...@y.values, which itself is a list (one list element per run). Thus, you can use functions like unlist or s/lapply to access them, e.g. mean(unlist(p...@y.values)) Kind regards, Tobias On Sat, Jul

Re: [R] ROCR package question

2009-07-25 Thread Tobias Sing
Waverley, if you want to modify components of the ROCR plot, you need to direct the parameters to the component functions by prefixing them with the name of that component function. In your case, you should add boxplot.outline=FALSE as follows: plot(perf, avg= vertical, spread.estimate=boxplot,

Re: [R] [Classification] lifting score in R

2009-06-24 Thread Tobias Sing
Michael, a lift chart for evaluating binary scoring classifiers, as I understand it, plots... lift score: P(Yhat = + | Y = +)/P(Yhat = +) against rate of rate of positive predictions: P(Yhat = +). ...across the continuum of possible cutoffs. If you want to do this, here is how you would do this

[R] Writing Reports from R in Office Open XML format (ooxmlWeave?)

2009-06-09 Thread Tobias Sing
Dear all, has someone implemented functionality for writing reports from R in Office Open XML format (*), similar to what odfWeave does for the ODF format of OpenOffice? It would be great to have a kind of ooxmlWeave at least for those of us who are forced to work in an MS ecosystem. (*)

Re: [R] ROCR: auc and logarithm plot

2009-05-12 Thread Tobias Sing
1. I have tried to understand how to extract area-under-curve value by looking at the ROCR document and googling. Still I am not sure if I am doing the right thing. Here is my code, is auc1 the auc value? pred1 - prediction(resp1,label1) perf1 - performance(pred1,tpr,fpr) plot( perf1,

Re: [R] ROCR: auc and logarithm plot

2009-05-12 Thread Tobias Sing
, the default one, instead of red 2. --Tim --- On Tue, 5/12/09, Tobias Sing tobias.s...@gmail.com wrote: From: Tobias Sing tobias.s...@gmail.com Subject: Re: [R] ROCR: auc and logarithm plot To: timlee...@yahoo.com, r-help@r-project.org Date: Tuesday, May 12, 2009, 5:54 AM 1. I have tried

Re: [R] Plotting questions (ROCR)

2009-05-08 Thread Tobias Sing
To have several performance curves on a single plot, use the add=TRUE option, e.g. as follows: plot(perf1) plot(perf2, add=TRUE, col='red') Please read the help to ?plot.performance. It also tells you how you can adjust all graphical parameters for the individual curves. This slide deck contains

Re: [R] Prediction-class ROCR

2009-03-19 Thread Tobias Sing
Regina, to get a simple ROC curve, use the following sequence of commands: pred - prediction(predictions, labels) perf - performance(pred, tpr, fpr) plot(perf) In the first line, 'predictions' are the raw predictions (usually numerical) of your classifier, and labels (as you correctly guessed)

Re: [R] Question about ROCR package

2009-02-08 Thread Tobias Sing
Waverley, you can also use p...@y.values to access the slot (see help(performance-class) for a description of the slots). You might also want have a look at the code for demo(ROCR) and at this slide deck: http://rocr.bioinf.mpi-sb.mpg.de/ROCR_Talk_Tobias_Sing.ppt HTH, Tobias On Sat, Feb 7,

Re: [R] Extracting slots from ROCR prediction objects

2008-05-22 Thread Tobias Sing
Hi Stacey, ROCR uses S4 classes. The elements are accessed using @ instead of $. You can find an example on slide 12 of the following slide deck: http://rocr.bioinf.mpi-sb.mpg.de/ROCR_Talk_Tobias_Sing.ppt Also have a look at the R code that appears when you type demo(ROCR) in R which contains

[R] odfWeave: in multi-page plots only last page appears in document

2008-04-14 Thread Tobias Sing
Dear all, Max, first of all, many thanks for providing the odfWeave package. My problem: Whenever I have multiple plots in one single chunk of my ODF file, only the last plot gets shown. The problem can be reproduced with this toy example (to be used in an ODF file together with odfWeave -- I'm

Re: [R] odfWeave: in multi-page plots only last page appears in document

2008-04-14 Thread Tobias Sing
, then you need to break that into three separate plots. Sarah On Mon, Apr 14, 2008 at 2:20 PM, Tobias Sing [EMAIL PROTECTED] wrote: Dear all, Max, first of all, many thanks for providing the odfWeave package. My problem: Whenever I have multiple plots in one single chunk

Re: [R] how to create ROC curve for 2 dimensional classifiers

2008-02-22 Thread Tobias Sing
The are some papers on the topic (google for roc surfaces), but no R packages for multi-class ROC analysis. I personally have some doubts about the practical value of these approaches in the case of more than two classes, but others may disagree. Kind regards, Tobias On Thu, Feb 21, 2008 at

Re: [R] Transfer Crosstable to Word-Document

2008-02-17 Thread Tobias Sing
On Feb 17, 2008 2:49 PM, Udo König [EMAIL PROTECTED] wrote: [...] Greg: To the odfWeave package: in [2] I found the sentence The package is currently limited to creating text documents using OpenOffice. So it doesn´t seem work with MS-Word? Udo, I think odfWeave is exactly what you need

Re: [R] How to search for packages

2008-02-04 Thread Tobias Sing
Hadley, On Feb 4, 2008 5:03 PM, hadley wickham [EMAIL PROTECTED] wrote: [...] Before Christmas I started working on a solution for this - http://crantastic.org - a site for searching, reviewing and tagging R packages. Unfortunately I've run out of steam lately (and the lack of a 64-bit

Re: [R] Calculating AUC from ROCR

2007-11-21 Thread Tobias Sing
PROTECTED] wrote: Dear R-helper, I am working with ROCR of Tobias Sing et. al. to compare the performances of logistic and nnet models on a binary response. I had the performance plots, but I have problem finding out other performance statistics (eg. MSE/ASE, AUC). Any help on this? Thanks