[R] Friedman test with replicated samples

2005-11-16 Thread Alessandro Bigi
Dear R-users, I would need to do a Friedman test with replicated samples, and Friedman.test(y...) currently works only for unreplicated designs. Is there a script or a function available? Thanks, Alessandro -- -- __ R-help@sta

[R] how to export density_function output?

2005-11-07 Thread Alessandro Bigi
Dear all, quite a naive question: I have a data frame and I computed "the kernel density estimate" with density on each column. Now I'd like to export in a txt file the density function output for each column, but, when if I use write.table, I get a message "Error in as.data.frame.default(x[[i]

[R] weird results w/ prcomp-princomp

2005-04-08 Thread Alessandro Bigi
I am doing a Principal Component Analaysis (PCA) on a 44x19 matrix. with > princomp(x,cor=TRUE,scores=TRUE) and > prcomp(x,scale=TRUE,center=TRUE) The resulted eigenv. and rotated matrix are the same (as expected), however the sum of eigenvalues is lower than 19 (number of variables). With a comm