Skip to contents

Table 3.8 Adjustment of live births by place of usual residence of mother and sex of newborn

Table 3.9 Adjustment of deaths by place of usual residence and sex of decedent

Usage

create_t3.8_and_t3.9(
  data,
  est_data,
  date_var,
  by_var,
  topic = NA,
  data_year = NA,
  tablename = "Table_3_9",
  output_path = NULL
)

Arguments

data

name of data frame being used

est_data

data frame of estimated data being used

date_var

occurrence data variable being used

by_var

the occurrence year being used e.g. dobyr or dodyr

topic

whether births or deahts is being run

data_year

The year to report on. Defaults to the last in the data.

tablename

Name of the table to be saved as a csv file. Optional.

output_path

The path to export the generated csv table. Optional.

Value

data frame with tabulated results

Examples

t3.8 <- create_t3.8_and_t3.9(data = bth_data, est_data = bth_est,
date_var = dobyr, data_year = 2022, by_var = birth1c,
topic = "births", tablename = "Table_3_8")
#> Error: object 'bth_data' not found
t3.9 <- create_t3.8_and_t3.9(data = dth_data, est_data = dth_est,
                            date_var = dodyr, data_year = 2022, by_var = birth1c,
                            topic = "deaths", tablename = "Table_3_9")
#> Error: object 'dth_data' not found