View source: R/get_sibship_visibility.R
get_visibility | R Documentation |
calculate visibility for each sibship and ego
get_visibility(
ego.dat,
ego.id,
sib.dat,
sib.frame.indicator,
weight = "wwgt",
age = "age.cat"
)
ego.dat |
The ego dataset (likely produced by prep_dhs_sib_histories) |
ego.id |
String with the name of the column in |
sib.dat |
The long-form sibling dataset (likely produced by prep_dhs_sib_histories) |
sib.frame.indicator |
String with the name of the column in |
weight |
string with the name of the column in |
age |
string with the name of the column in |
A list with two entries:
ego_vis_agg
- a tibble with summarized adjustment factors
ego_vis
- a tibble with one row per ego and the ego-specific visibilities
tibble with a row for each survey respondent (each unique value of ego.id
),
and the number of sibs the respondent reported on the frame, including and not including herself
# TODO write example code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.