[R] Odp: R: Help with factors

2008-05-14 Thread Petr PIKAL
Hi so basically you want to 1. select one city 2. compute a correlation coeficient between value V for males and females 3. repeat this for each city As I am not an expert in statistics I could be off track but maybe cor(do.call(cbind,split(data$V, interaction(data$city, data$se

[R] Odp: R-help

2007-12-04 Thread Petr PIKAL
Hi [EMAIL PROTECTED] napsal dne 04.12.2007 02:39:39: > > I recently picked up R for econometrics modeling, and I am confronted with > a > > problem. I use cor.test() for spearman test, and want to get the "rho" and > > "P-value" in the summary. Would you please tell me how to get them? Thank >