plot.demogdata
and
fitting an LC or BMS model using lca
or an FDA model using fdm
.read.demogdata(file, popfile, type, label, max.mx = 10, skip = 2, popskip = skip, lambda, scale=1)
file
.popfile
.scale=1
indicates the rates are per person; scale=1000
indicates the rates are per 1000 people.rate
but containing population numbers instead of demographic rates.popfile
contains the
Exposures and file
contains the Mx rates from the HMD, then everything will work seamlessly.demogdata
## Not run:
# norway <- read.demogdata("Mx_1x1.txt", "Exposures_1x1.txt",
# type="mortality", label="Norway")## End(Not run)
Run the code above in your browser using DataLab