Hi everybody,
I'm running codes for for a Lee carter modeling. I compute the demogdata
function in the package demography.
Age is a class of factor
Base<-demogdata(data=x,pop=y,ages=AGE,years=YEAR,type="mortality",label="City",name="Hommes",lambda=1)
Now, I try to run codes for lee carter model, and i always get the following
message:
Error in Summary.factor(c(1L, 2L, 24L, 35L, 46L, 57L, 68L, 79L, 90L, 101L, :
max not meaningful for factors
Please can you help to understand what means this message.
Many Thanks
Achille
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.