given a sib dataset, calculate individual visibility weight for each sib
calculate_sib_ind_visibility.Rdgiven a sib dataset, calculate individual visibility weight for each sib
Usage
calculate_sib_ind_visibility(
df,
sib.frame.indicator = ".sib.in.F",
num.sibs.on.frame.var = "y.F",
varname = "ind_vis"
)Arguments
- df
Dataset on sibling reports (possibly by cell)
- sib.frame.indicator
String with the name of the column in
dfcontaining a 0/1 coded variable indicating whether or not each sib is in the frame population- num.sibs.on.frame.var
String with the name of the column in
dfcontaining the number of sibs on the frame for each ego- varname
String with the name of the new column to create with the individual visibility of each sib