compute.weights {RDS} | R Documentation |
Compute estimates of the sampling weights of the respondent's observations based on various estimators
Description
Compute estimates of the sampling weights of the respondent's observations based on various estimators
Usage
compute.weights(
rds.data,
weight.type = c("Gile's SS", "RDS-I", "RDS-I (DS)", "RDS-II", "Arithmetic Mean", "HCG"),
N = NULL,
subset = NULL,
control = control.rds.estimates(),
...
)
Arguments
rds.data |
An |
weight.type |
A string giving the type of estimator to use. The options
are |
N |
An estimate of the number of members of the population being
sampled. If |
subset |
An optional criterion to subset |
control |
A list of control parameters for algorithm
tuning. Constructed using |
... |
Additional parameters passed to the individual weighting algorithms. |
Value
A vector of weights for each of the respondents. It is of the same
size as the number of rows in rds.data
.
See Also
rds.I.weights
, gile.ss.weights
, vh.weights