add_wtd_dim_tots: Add weighted dimension totals

add_wtd_dim_totsR Documentation

Add weighted dimension totals

Description

add_wtd_dim_tots() is an Add function that updates an object by adding new values to new or empty fields. Specifically, this function implements an algorithm to add weighted dimension totals. The function returns Weighted and unweighted dimension (a tibble).

Usage

add_wtd_dim_tots(
  unwtd_dim_tb,
  domain_items_ls,
  domain_unwtd_pfx_1L_chr,
  domain_wtd_pfx_1L_chr,
  aqol6d_scrg_dss_ls = NULL
)

Arguments

unwtd_dim_tb

Unweighted dimension (a tibble)

domain_items_ls

Domain items (a list)

domain_unwtd_pfx_1L_chr

Domain unweighted prefix (a character vector of length one)

domain_wtd_pfx_1L_chr

Domain weighted prefix (a character vector of length one)

aqol6d_scrg_dss_ls

Assessment of Quality of Life Six Dimension scoring datasets (a list), Default: NULL

Value

Weighted and unweighted dimension (a tibble)


ready4-dev/youthvars documentation built on Nov. 15, 2024, 6:02 a.m.