plot.paramDemoLT {paramDemo} | R Documentation |
Draw a plot of demographic rates from a life table produced with function CalcLifeTable
or of product limit estimator produced with function CalcProductLimitEst
## S3 method for class 'paramDemoLT'
plot(x, demorate = "lx", inclCIs = FALSE, ...)
## S3 method for class 'paramDemoPLE'
plot(x, inclCIs = FALSE, ...)
x |
Object of class |
demorate |
Demographic rate to be plotted, choices are “ |
inclCIs |
Logical indicating whether confidence intervals should be ploted in case they were calculated with function |
... |
Additional arguments passed to function |
No return value, called for plotting objects of class “paramDemoLT
”
Fernando Colchero fernando_colchero@eva.mpg.de
CalcLifeTable
to calculate life tables. CalcProductLimitEst
to calculate product limit estimators.
# Simulate age at death data from Gompertz model:
ages <- SampleRandAge(n = 100, theta = c(b0 = -5, b1 = 0.1))
# Calculate life table:
lt <- CalcLifeTable(ageLast = ages, departType = rep("D", 100))
# Plot life table:
plot(lt)