robjhyndman / demography

demography package for R
https://pkg.robjhyndman.com/demography
73 stars 25 forks source link

Life Table #33

Closed earthcat12 closed 5 years ago

earthcat12 commented 5 years ago

Hello, i have some models from the StMoMo package and i need to make lifetables from them. When i use the function lifetable i get the error that the data are not demogdata. Can you please help me?

My code is : ``` ages.fit<-55:89 wxt<- genWeightMat(ages = 55:89, years = grstomo.male$years, clip = 3) rh<-rh(link = "log", cohortAgeFun = "1") rhfit.male<- fit(rh, data = grstomo.male, ages.fit = ages.fit, wxt=wxt)

robjhyndman commented 5 years ago

Ask the maintainer of the StMoMo package. The rh and genWeightMat functions are not part of the demography package.