[R] Friedman test with replicated samples
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@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] how to export density_function output?
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]], optional = TRUE) : can't coerce class density into a data.frame How should I do? Thanks, Alessandro -- -- __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] weird results w/ prcomp-princomp
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 commercial stat software it worked correctly, with the same dataset. Am I doing something wrong? Thanks Alex -- No virus found in this outgoing message. Checked by AVG Anti-Virus. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html