sib_ic_checks_OLD | R Documentation |
get calculate internal consistency checks for sibling reports
sib_ic_checks_OLD(
esc.dat,
ego.dat,
ego.id,
sib.id,
sib.frame.indicator,
sib.cell.vars,
ego.cell.vars,
boot.weights
)
esc.dat |
The ego X sibling X cell dataset (see |
ego.dat |
The ego dataset, containing one row for each survey respondent |
ego.id |
String with the name of the column in |
sib.id |
String with the name of the column in |
sib.frame.indicator |
String with the name of the column in |
sib.cell.vars |
see Details |
ego.cell.vars |
see Details |
boot.weights |
Dataframe with bootstrap resampled weights. See Details |
A tibble with a row for each reported sibling in the frame population, the sibling's cell info, and the cell info of the survey respondent who reported each sibling
The sib.cell.vars
and ego.cell.vars
arguments should have a vector with Strings containing the names of
columns in esc.dat
identifying the cells to group reports by (typically age and sex, and possibly other variables).
Note that, unlike the cell.vars
argument in get_ec_reports
, for this function sib.cell.vars
and
ego.cell.vars
MUST have the age variable listed FIRST.
The goal of get_ic_reports
is to find the cell that each sibling was in at the time of the interview, meaning the oldest age group to which the
sibling contributed any exposure.
boot.weights
is assumed to have a column that is named whatever the ego.id
is,
and then a series of columns named boot_weight_1
, ..., boot_weight_M
.
# TODO write example code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.