Re: [R] Question about subsetting S4 object in ROCR

2013-05-28 Thread Guido Leoni
Ye sorry of course i'm interested to the area ranging from 0;0 to 0.4;0.8 thank you Guido 2013/5/27 Uwe Ligges lig...@statistik.tu-dortmund.de On 27.05.2013 16:18, Guido Leoni wrote: Dear list I'm testing a predictor and I produced nice performance plots with ROCR package utilizing the 3

[R] Question about subsetting S4 object in ROCR

2013-05-27 Thread Guido Leoni
Dear list I'm testing a predictor and I produced nice performance plots with ROCR package utilizing the 3 standard command pred - prediction(predictions, labels) perf - performance(pred, measure = tpr, x.measure = fpr) plot(perf, col=rainbow(10)) The pred object and the perfo object are S4 with

[R] generic question about differences between PCA and DMFA

2012-11-07 Thread Guido Leoni
with the package FactorMineR could be a better way to analyze these data? Thank you for any suggestion Guido -- Guido Leoni National Research Institute on Food and Nutrition (I.N.R.A.N.) via Ardeatina 546 00178 Rome Italy tel + 39 06 51 49 41 (operator) + 39 06 51 49 4498 (direct

[R] question about A2R

2012-08-16 Thread Guido Leoni
Dear List I'm trying to install a package not present in cran named A2R ( http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=79) After running the demo script I retrieve the following error: cannot change value of locked binding for '._a2r_counter' Please could someone give to me a

[R] Sugeestion about tuning of SVM

2012-06-15 Thread Guido Leoni
-- Guido Leoni National Research Institute on Food and Nutrition (I.N.R.A.N.) via Ardeatina 546 00178 Rome Italy tel + 39 06 51 49 41 (operator) + 39 06 51 49 4498 (direct) [[alternative HTML version deleted]] __ R-help@r-project.org

[R] Question about sampling

2012-06-14 Thread Guido Leoni
Dear list I wish to extract from a population genotypized for 10 SNP a subsample of the same population of size n with similar allele frequencies. Essentially i have a matrix of 200 rows (df) like this Name,Condition,rs1385699_X,rs6625163_X,rs962458_X,Rs4658627_1, sample01,Case,1,1,1,-1

Re: [R] Question about sampling

2012-06-14 Thread Guido Leoni
not sum to one so, if I understand you, you could just pass TRUEs and FALSEs for those rows you want. If I'm wrong about that last bit, I'm still pretty confident sample(prob = ) is the way to go. Best, Michael On Thu, Jun 14, 2012 at 6:02 AM, Guido Leoni guido.le...@gmail.com wrote: Dear

Re: [R] Question about sampling

2012-06-14 Thread Guido Leoni
, directly): constrained sampling like this is a little trickier -- I'll leave this to someone who knows more than me. Michael On Thu, Jun 14, 2012 at 9:07 AM, Guido Leoni guido.le...@gmail.com wrote: Sorry I'm not sure that prob is suitable for my purposes(but i'm quite newbie with R). If I

[R] Problem with sample function

2012-06-08 Thread Guido Leoni
Dear list Is there a way to extract a random sample without duplicated row from a dataframe ?. a=c(1,2,3,1,1,1,2,1) b=c(1,2,3,1,2,1,2,1) c=c(1,1,1,1,1,1,1,1) d=c(1,2,3,1,1,1,2,1) prov-data.frame(a,b,c,d) prov2-prov[sample(1:nrow(prov),5,replace=T),] prov2 a b c d 3 3 3 1 3 6 1 1 1 1

Re: [R] Problem with sample function

2012-06-08 Thread Guido Leoni
yes you are right it was my inattention it is friday and my head needs to start the week end sorry;-) 2012/6/8 David Winsemius dwinsem...@comcast.net On Jun 8, 2012, at 12:33 PM, Guido Leoni wrote: Dear list Is there a way to extract a random sample without duplicated row from

[R] Problem with tune function in e1071 package

2012-06-06 Thread Guido Leoni
Dear list I'm classifying some data with e1071package but when I try to tune my parameters I retrieve this error Error in do.call(method, c(list(train.x[train.ind[[sample]], ], y = train.y[train.ind[[sample]]]), : 'what' must be a character string or a function below are my command

Re: [R] Help with plot of PCA analysis (new user to R)

2012-03-08 Thread Guido Leoni
. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Guido Leoni National Research Institute on Food

[R] Question about hierarchical clustering

2012-02-29 Thread Guido Leoni
Dear List i'm performing hierarchical clustering analysis with ward method. My best clusters are choosen according to silhouette score... Now I'd like to select the most representative term in each cluster. Do you think that searching for medoids could be a good idea? Here is the code that I use

[R] Question about multiple histogram

2011-12-12 Thread Guido Leoni
could be the best to achieve my goal? thank you very much Guido -- Guido Leoni National Research Institute on Food and Nutrition (I.N.R.A.N.) via Ardeatina 546 00178 Rome Italy tel + 39 06 51 49 41 (operator) + 39 06 51 49 4498 (direct) [[alternative HTML version deleted

[R] Question about list function

2010-11-23 Thread Guido Leoni
long to cut and paste in my bash shell. So is there a way too import the list from a text file? Thank you very much for any kind of help Guido -- Guido Leoni National Research Institute on Food and Nutrition (I.N.R.A.N.) via Ardeatina 546 00178 Rome Italy tel + 39 06 51 49 41 (operator