Skip to contents

Table 5.1 Summary statistics on mortality by year of occurrence

Usage

create_t5.1(
  data,
  est_data,
  pops,
  num_yrs = 5,
  tablename = "Table_5_1",
  output_path = NULL
)

Arguments

data

deaths data frame

est_data

estimate data frame

pops

population data frame

num_yrs

number of years to report on

tablename

name for csv output use _ instead of . for names

Value

data frame with tabulated results

Examples

death_data <- construct_sample_death_data()
estim_death_data <- construct_sample_estim_death_data()
sample_pop_estim <- construct_sample_pop_estim()
death_data <- construct_year(death_data, date_col = "death1a", year_col = "dodyr")
table_5_1 <- create_t5.1(data = death_data, est_data = estim_death_data, pops = sample_pop_estim, tablename = "Table_5_1")