[R] Problem with user defined split function in Rpart

2007-03-02 Thread Paolo Radaelli
ative CP nsplit rel error 1 -1.011038 0 1 Where does the problem lie ? Thank you for any helpful suggestion. Paolo Radaelli Paolo Radaelli Dipartimento di Metodi Quantitativi per le Scienze Economiche ed Aziendali Facoltà di Economia Università degli Studi di Milano-Bicocca

[R] User defined split function in Rpart

2007-01-03 Thread Paolo Radaelli
t lmean <- temp/left.wt rmean <- -temp/right.wt goodness <- (left.wt*lmean^2 + right.wt*rmean^2)/sum(wt*y^2) list(goodness= goodness, direction=sign(lmean)) } } Paolo Radaelli Dipartimento di Metodi Quantitativi per le Scienze Economiche ed Aziendali Facoltà di Economia Università deg

[R] Using a specified splitting criterion in tree and rpart

2006-11-27 Thread Paolo Radaelli
or the splitting function, the component split (index) that can be chosen between gini and information. Does someone can suggest me some documentation I can have a look do define my splitting criterion and pass it to rpart ? Thanks Paolo Paolo Radaelli Dipartimento di Metodi Quantitativi per

[R] Splitting criterion in tree and rpart

2006-11-24 Thread Paolo Radaelli
t;exp". and tries to make an intelligent guess if method is missing. I also found that, in rpart, method can be a list of functions named init, split and eval but I really don't know how can I do it. Does someone can suggest me some documentation I can have a look do define my sp

Re: [R] Compute quantiles with values and correspondent frequencies

2006-03-03 Thread Paolo Radaelli
Yes, it should work. Thanks - Original Message - From: "Sean Davis" <[EMAIL PROTECTED]> To: "Paolo Radaelli" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: "r-help" Sent: Friday, March 03, 2006 1:49 PM Subject: Re: [R] Compute quantiles w

Re: [R] Compute quantiles with values and correspondent frequencies

2006-03-03 Thread Paolo Radaelli
Yes, but it works only when you have integer counts for each value. When I have only relative frequencies I can't repeat each value a non-integer number of times. Paolo - Original Message - From: "Roger Bivand" <[EMAIL PROTECTED]> To: "Paolo Radaelli"

[R] Compute quantiles with values and correspondent frequencies

2006-03-03 Thread Paolo Radaelli
Dear List, quantile(x) function allows to obtain specified quantiles of a vector of observations x. Is there an analogous function to compute quantiles in the case one have the vector of the observations x and the correspondent vector f of relative frequencies ? Thank you Paolo Radaelli

[R] Hierarchical clustering with centroid method

2005-07-26 Thread Paolo Radaelli
Dear everybody! In the function hclust, at each stage distances between clusters are recomputed by the Lance-Williams dissimilarity update formula according to the particular clustering method being used. Using "centroid" method, Lance-Williams recurrence formula works properly only for euclidea

[R] R-estimators

2004-04-19 Thread Paolo Radaelli
Dear all, could you please suggest me the package I have to install in order to use ranks statistics in regression models (R-Estimators, wilcoxon scores ...) Thanks in advance Paolo Radaelli [[alternative HTML version deleted]] __ [EMAIL

[R] R-estimators

2004-04-09 Thread Paolo Radaelli
Dear all, could you please suggest me the package I have to install in order to use ranks statistics in regression models (R-Estimators, wilcoxon scores ...) Thanks and Happy Easter Paolo Radaelli [[alternative HTML version deleted]] __ [EMAIL