[R] The Censummary Function...

From: nand kumar <nksathyar_at_yahoo.com>
Date: Mon 23 Oct 2006 - 21:38:12 GMT


Hi Forum,

I am new and learning this research tool. was trying to run some tests on a censored dataset using the NADA library. Everything is hunky dory except 'censummary' throws an error and I am trying to figure out a reason for this. Please help!
below you will see the error statement... thnx
--nk

> library(NADA)

Loading required package: survival
Loading required package: splines

> "AsExample" <-structure(list(AsLow = as.integer(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)), AsHigh = as.integer(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3)), AsCen = as.integer(c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1))), .Names = c("AsLow", "AsHigh", "AsCen"), class = "data.frame", row.names = c("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24"))
> AsExample

   AsLow AsHigh AsCen

1      0      1     1
2      0      1     1
3      0      1     1
4      0      1     1
5      0      1     1
6      0      1     1
7      0      1     1
8      0      1     1
9      0      1     1
10     0      1     1
11     0      1     1
12     1      3     1
13     1      3     1
14     1      3     1
15     1      3     1
16     1      3     1
17     1      3     1
18     1      3     1
19     1      3     1
20     1      3     1
21     1      3     1
22     1      3     1
23     1      3     1
24     1      3     1

> names(AsExample)

[1] "AsLow" "AsHigh" "AsCen"
> censummary(AsLow, AsHigh, AsCen)
Error: object "AsLow" not found
Error in censummary(AsLow, AsHigh, AsCen) :

        unable to find the argument 'obs' in selecting a method for function 'censummary'

        [[alternative HTML version deleted]]



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 and provide commented, minimal, self-contained, reproducible code. Received on Tue Oct 24 08:35:14 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 24 Oct 2006 - 01:30:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.