Re: [R] Non-Parametric Adventures in R

2010-10-06 Thread Jamesp
Thanks for the leads. I had been looking at CrossTables for awhile, but they only seem to have one variable on each axis for each example I read. The Hmisc summary.formula looks very promising, so I will investigate it now. I think that might be the winner from looking at the examples you sugge

Re: [R] Non-Parametric Adventures in R

2010-10-06 Thread Gabor Grothendieck
On Wed, Oct 6, 2010 at 7:08 AM, Jamesp wrote: > > 6b)  Getting pretty close with some nasty code.  I think I could copy and > paste to openoffice calc and make it pretty fairly easily at this point. > > I should make a function to clean up the repeated part at least.  Overall, I > think I could ma

Re: [R] Non-Parametric Adventures in R

2010-10-06 Thread Jamesp
6b) Getting pretty close with some nasty code. I think I could copy and paste to openoffice calc and make it pretty fairly easily at this point. I should make a function to clean up the repeated part at least. Overall, I think I could make a function that applies another function to generate a

Re: [R] Non-Parametric Adventures in R

2010-10-05 Thread Jamesp
Thanks for the feedback, this is really helpful. 4) Your solution works like a charm. I opted for reference by column number since I had so many. ynFields = c(12:22,58:229) ynLabel = c("No","Yes") X[ynFields] <- lapply(X[ynFields], factor, levels=0:1, labels=ynLabel) whenFields = c(24:56) when

Re: [R] Non-Parametric Adventures in R

2010-10-03 Thread Johannes Huesing
Jamesp [Sat, Oct 02, 2010 at 11:27:09PM CEST]: > [...] > > 1) I was thinking I'd have to go through each nominal variable (i.e. > table(X$race) ), but I think I have it figured out now. summary(X

Re: [R] Non-Parametric Adventures in R

2010-10-03 Thread Peter Dalgaard
> > !! >

Re: [R] Non-Parametric Adventures in R

2010-10-03 Thread Tal Galili
Dear Jamesp, This might be (more?) fitting for a blog then the R-help mailing list. I'd suggest you to open a blog on (it takes less then 4 minutes): wordpress.com It now has syntax highlighting for R code: http://www.r-statistics.com/2010/09/r-syntax-highlighting-for-bloggers-on-wordpress-com/ I

[R] Non-Parametric Adventures in R

2010-10-03 Thread Jamesp
I just started using R and I'm having all sorts of "fun" trying different things. I'm going to document the different things I'm doing here as a kind of case study. I'm hoping that I'll get help from the community so that I can use R properly. Anyways, in this study, I have demographic data, dr