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 > > > On 27.05.2013 16:18, Guido Leoni wrote: > >> Dear list >> I'm testing a predictor and I produced nice performance plots with ROCR >>

[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

[R] generic question about differences between PCA and DMFA

2012-11-07 Thread Guido Leoni
e 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 44

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

[R] Sugeestion about tuning of SVM

2012-06-15 Thread Guido Leoni
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-hel

Re: [R] Question about sampling

2012-06-14 Thread Guido Leoni
ly): 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 > wrote: > > Sorry I'm not sure that prob is suitable for my purposes(but i'm quite > &

Re: [R] Question about sampling

2012-06-14 Thread Guido Leoni
t; need 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

[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 sample02,Co

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

[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

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

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

2012-03-08 Thread Guido Leoni
http:// > www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > __ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/

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

[R] Question about multiple histogram

2011-12-12 Thread Guido Leoni
esentation 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 versi

[R] Question about list function

2010-11-23 Thread Guido Leoni
riables but is too 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