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@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.