chs_by_age_sex: stratified result by age and sex.

View source: R/chs_by_age_sex.R

chs_by_age_sexR Documentation

stratified result by age and sex.

Description

chs_by_age_sex function will calculate stratified rate of health indicators.

Usage

chs_by_age_sex(
  data_set,
  de_var = "ph_a0500",
  var_name,
  cluster = "JIJUM_CD",
  by_var = c("sex", "age_10"),
  strata = c("BOGUN_CD", "dong_type", "house_type"),
  weight = "wt",
  digits = 1
)

Arguments

data_set

data set.

de_var

target(dependent) variable.

var_name

indicator name.

cluster

cluster.

by_var

strata variable.

strata

strata.

weight

weight.

digits

integer indicating the number of decimal places.#'

Value

stratifed rates


Sanggeun/chs documentation built on Jan. 7, 2023, 7:46 a.m.