Estimate death rates from sibling history data
sibling_estimator.RdEstimate death rates from sibling history data
Usage
sibling_estimator(
sib.dat,
ego.id,
sib.id,
sib.frame.indicator,
sib.sex = "sex",
cell.config,
weights,
boot.weights = NULL,
return.boot = FALSE,
discretize.exp = FALSE
)Arguments
- sib.dat
The long-form sibling history dataset (likely produced by prep_dhs_sib_histories)
- ego.id
String with the name of the column of
sib.datthat has the ID of the survey respondent- sib.id
String with the name of the column of
sib.datthat has the sibling ID- sib.frame.indicator
String with the name of the column in
sib.datcontaining a 0/1 coded variable indicating whether or not each sib is in the frame population- sib.sex
String with the name fo the column of
sib.datthat has the sibling's sex- cell.config
An object containing the configuration of cells; see TODO for more information
- weights
String with the name of the column of
sib.datthat has the sampling weight- boot.weights
Optional dataframe with bootstrap resampled weights. See Details for more info.
- return.boot
If TRUE, and if
boot.weightsis specified, then return each bootstrap estimate- discretize.exp
Boolean for whether or not expsoure should be discretized. Not yet implemented.