Displaying 3 results from an estimated 3 matches for "lungtumor".
2007 Nov 01
1
Help me in Cochran armitage trend test Coding
...Error: package 'modeltools' required by 'coin' could not be found
In addition: Warning messages:
1: package 'coin' was built under R version 2.6.0
2: package 'survival' was built under R version 2.5.1
3: package 'mvtnorm' was built under R version 2.5.1
> lungtumor <- data.frame(dose = rep(c(0, 1, 2), c(40, 50, 48)),
+ tumor = c(rep(c(0, 1), c(38, 2)),
+ rep(c(0, 1), c(43, 7)),
+ rep(c(0, 1), c(33, 15))))
> table(lungtumor$dose, lungtumor$tumor)
0 1
0 38 2
1 43 7
2 33 15
> independence_test(tumor ~ dose, data = lungtumor, teststat = &q...
2006 Dec 28
0
Cochran-Armitage statistics
Dear R-enthusiasts,
I am trying to do a Cochran-Armitage test for trend in R. After consulting
google I found Torsten Hothorn's remark that the 'coin' library could be
used.
lungtumor <- data.frame(dose = rep(c(0, 1, 2), c(40, 50, 48)),
tumor = c(rep(c(0, 1), c(38, 2)),
rep(c(0, 1), c(43, 7)),
rep(c(0, 1), c(33, 15))))
table(lungtumor$dose, lungtumor$tumor)
### Cochran-Armitage test (...
2009 Jan 12
1
Extraction from an output
Hello,
Would you tell my how to extract a result from a test - it's justified because I need to run this test many times. Here is an example from authors' test:
> library("coin")
> lungtumor <- data.frame(dose = rep(c(0, 1, 2), c(40, 50, 48)), tumor = c(rep(c(0, 1), c(38, 2)), rep(c(0, 1), c(43, 7)), rep(c(0, 1), c(33, 15))))
> ca.test<-independence_test(tumor ~ dose, data = lungtumor, teststat = "quad")
> ca.test
Asymptotic General Independence Test
dat...