Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compute.weights

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 rds.data.frame that indicates recruitment patterns by a pair of attributes named “id” and “recruiter.id”.

weight.type

A string giving the type of estimator to use. The options are "Gile's SS", "RDS-I", "RDS-II", "RDS-I/DS", and "Arithemic Mean". It defaults to "Gile's SS".

N

An estimate of the number of members of the population being sampled. If NULL it is read as the population.size.mid attribute of the rds.data frame. If that is missing, the weights will sum to 1. Note that this parameter is required for Gile's SS.

subset

A logical expression subsetting rds.data.

control

A list of control parameters for algorithm tuning. Constructed using
control.rds.estimates.

...

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

Respondent-Driven Sampling

v0.9-3
LGPL-2.1
Authors
Mark S. Handcock [aut, cre], Krista J. Gile [aut], Ian E. Fellows [aut], W. Whipple Neely [aut]
Initial release
2021-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.