Skip to contents

Excess Mortality Analysis

Usage

excessmortality(
  data,
  timeVar,
  statusVar,
  ageVar,
  sexVar,
  covariates,
  expectedRate = "population",
  splineType = "bs",
  nknots = 4,
  degree = 3,
  confidenceLevel = 95,
  plotHazard = TRUE,
  plotSurvival = TRUE,
  plotCumHazard = FALSE,
  timePoints = "1,2,3,5,10"
)

Arguments

data

.

timeVar

.

statusVar

.

ageVar

.

sexVar

.

covariates

.

expectedRate

.

splineType

.

nknots

.

degree

.

confidenceLevel

.

plotHazard

.

plotSurvival

.

plotCumHazard

.

timePoints

.

Value

A results object containing:

results$instructionsa html
results$modelSummarya table
results$coefficientsa table
results$predictionsa table
results$goodnessOfFita table
results$hazardPlotan image
results$survivalPlotan image
results$cumHazardPlotan image

Tables can be converted to data frames with asDF or as.data.frame. For example:

results$modelSummary$asDF

as.data.frame(results$modelSummary)