[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 ___ R-

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

2009-09-24 Thread Tobias Sing
: "Tim Howard" > Subject: [R] ROCR.plot methods, cross validation averaging > To: , , >         > 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)

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

2009-09-18 Thread Tobias Sing
gt;> Sent: Friday, September 18, 2009 11:00 AM >> To: Greg Snow >> Cc: Tobias Sing; r help >> Subject: Re: [R] Writing Reports from R in Microsoft Office Open XML >> format (follow-up) >> >> >> I believe that their approach is based on DCOM a

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

2009-09-18 Thread Tobias Sing
ime 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 &g

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

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="boxpl

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, 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, Waverley wrote: > I use ROCR to plot multiple runs' performance.  Using the sample code > as example: > > # plot ROC curves for several cross-val

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. (*) Of

Re: [R] ROCR: auc and logarithm plot

2009-05-12 Thread Tobias Sing
t;,barcol=2)" > > Even I specify "barcol=2", the color of bars are still black, the default > one, instead of red "2". > > --Tim > > > --- On Tue, 5/12/09, Tobias Sing wrote: > > From: Tobias Sing > Subject: Re: [R] ROCR: auc and logarithm

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")

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 contain

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 guesse

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, 20

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 contai

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

2008-04-14 Thread Tobias Sing
> plot(1,1, main=paste('Plot',i)) > } > for example. > > Or, if you want ODFWeave to handle placement, then you need to > break that into three separate plots. > > Sarah > > > > > On Mon, Apr 14, 2008 at 2:20 PM, Tobias Sing <[EMAIL PROT

[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 u

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

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-bi

Re: [R] Calculating AUC from ROCR

2007-11-21 Thread Tobias Sing
7, G Ilhamto <[EMAIL 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