[R] categorical data

2006-08-09 Thread Christian Oswald
Dear List, I neeed a grouped list with two sort of categorical data. I have a data .frame like this. yearcat.b c 1 2006a1 125 212 2 2006a2 256 212 3 2005a1 14 12 4 2004a3 565 123 5 2004

Re: [R] categorical data

2006-08-09 Thread Marc Schwartz (via MN)
On Wed, 2006-08-09 at 18:07 +0200, Christian Oswald wrote: > Dear List, > > I neeed a grouped list with two sort of categorical data. I have a data > .frame like this. > yearcat.b c > 1 2006a1 125 212 > 2 2006a2 256 212 > 3 2005a1

Re: [R] categorical data

2006-08-10 Thread Christian Oswald
Hello, thats what I need, a list sorted first after year and then after categorie. But I get an error message > df df cate bc [1,] "2006" "a1" "1" "1" [2,] "2006" "a2" "2" "2" [3,] "2005" "a1" "3" "3" [4,] "2004" "a3" "1" "1" [5,] "2004" "a2" "2" "2" [6,] "2005" "a1" "3"

Re: [R] categorical data

2006-08-10 Thread Petr Pikal
Hi On 10 Aug 2006 at 9:19, Christian Oswald wrote: Date sent: Thu, 10 Aug 2006 09:19:06 +0200 From: Christian Oswald <[EMAIL PROTECTED]> To: r-help@stat.math.ethz.ch Subject: Re: [R] categorical data Send reply to:

Re: [R] categorical data

2006-08-10 Thread Christian Oswald
ubject: Re: [R] categorical data Send reply to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> > Hello, > > thats what I need, a list sorted first after year and then after > categorie. But I get an error message >

[R] Categorical data (Monte Carlo exact p-value)

2003-03-26 Thread Jorge Magalhães
In R program, I can perform categorical data test analysis like Odds ratio test in stratified 2x2 contingency tables? I do that in statistical package StatXact, but i would like perform the same test in R environment. Thanks very much Jorge Magalhães _

Re: [R] Categorical data (Monte Carlo exact p-value)

2003-03-26 Thread Spencer Graves
A search in the standard R documentation for "Fisher's exact test" reveals a command "fisher.test", and a search for "Chi-square" reveals a "chisq.test". Spencer Graves Jorge Magalhães wrote: In R program, I can perform categorical data test analysis like Odds ratio test in stratified 2x2 co

Re: [R] Categorical data (Monte Carlo exact p-value)

2003-03-26 Thread kjetil brinchmann halvorsen
On 26 Mar 2003 at 22:25, Jorge Magalhães wrote: Does ?mantelhaen.test do what you want? (it is in package ctest). Kjetil Halvorsen > In R program, I can perform categorical data test analysis like Odds ratio > test in stratified 2x2 contingency tables? I do that in statistical package > Sta