Creates Tables 3.8 and 3.9
create_t3.8_and_t3.9.Rd
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,
data_year = NA,
by_var,
topic = NA,
tablename = NA
)
Arguments
- data
name of data frame being used
- est_data
data frame of estimated data being used
- date_var
occurrence data variable being used
- data_year
year of data
- by_var
the occurrence year being used e.g. dobyr or dodyr
- topic
whether births or deahts is being run
- tablename
name for csv output use _ instead of . for names
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