[R] library(RII) and smoothing parameter

From: Maria del Carmen olvera <manme_olv_at_yahoo.es>
Date: Tue, 4 Dec 2007 12:09:53 +0000 (GMT)


Dear all

I have a deaths and atrisk dataset. I would like to calculate IRR of the dataset but before I want to choose the smoothing parameter and I have one error message. One example of dataset is:  

    class    age       Deaths    AtRisk
1      1     20-34          1           100
2      2     20-34          2             98
3      3     20-34          2           250
4      4     20-34          1             90
5      5     20-34          1           101
6      1     35-44          1             52
7      2     35-44          4             99
8      3     35-44          1           121
9      4     35-44          0             42
10    5     35-44          1           62
11    1     45-54          3            26
12    2     45-54          1           83
13    3     45-54          0           81
14    4     45-54          0           10
15    5     45-54          0           31

>obs<-xtabs(Deaths~class+age,data=T)
>pob<-xtabs(AtRisk~class+age,data=T)

>RII.CVplot(obs, pob, loglambda = seq(-2,18,len=21))

Error in plot.window(xlim, ylim, log, asp, ...) : need finites value de 'ylim' Moreover: Warning messages:
1: nothing argument finite for min; return Inf in: min(x) 2: nothing argument finite for max; return -Inf in: max(x)

I don´t have any idea what can be the problem  

Thanks all  

¿Chef por primera vez? - Sé un mejor Cocinillas. Entra en Yahoo! Respuestas.

¿Chef por primera vez? - Sé un mejor Cocinillas. Entra en Yahoo! Respuestas.        



¿Chef por primera vez?
Sé un mejor Cocinillas.

        [[alternative HTML version deleted]]



R-help_at_r-project.org 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 04 Dec 2007 - 12:13:34 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 04 Dec 2007 - 12:30:16 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.