compute.weights | R Documentation |
Compute estimates of the sampling weights of the respondent's observations based on various estimators
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(),
...
)
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. |
A vector of weights for each of the respondents. It is of the same
size as the number of rows in rds.data
.
rds.I.weights
, gile.ss.weights
, vh.weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.