Learn R Programming

⚠️There's a newer version (0.9-10) of this package.Take me there.

RDS (version 0.9-5)

Respondent-Driven Sampling

Description

Provides functionality for carrying out estimation with data collected using Respondent-Driven Sampling. This includes Heckathorn's RDS-I and RDS-II estimators as well as Gile's Sequential Sampling estimator. The package is part of the "RDS Analyst" suite of packages for the analysis of respondent-driven sampling data. See Gile and Handcock (2010) and Gile and Handcock (2015) .

Copy Link

Version

Install

install.packages('RDS')

Monthly Downloads

487

Version

0.9-5

License

LGPL-2.1

Maintainer

Mark S Handcock

Last Published

January 14th, 2023

Functions in RDS (0.9-5)

LRT.trend.test

Compute a test of trend in prevalences based on a likelihood-ratio statistic
RDS.HCG.estimates

Homophily Configuration Graph Estimates
RDS.compare.proportions

Compares the rates of two variables against one another.
RDS

This package provides functionality for carrying out estimation with data collected using Respondent-Driven Sampling. This includes Heckathorn's RDS-I and RDS-II estimators as well as Gile's Sequential Sampler estimator.
RDS.II.estimates

RDS-II Estimates
RDS.bootstrap.intervals

RDS Bootstrap Interval Estimates
RDS.I.estimates

Compute RDS-I Estimates
RDS.SS.estimates

Gile's SS Estimates
as.rds.data.frame

Coerces a data.frame object into an rds.data.frame object.
RDS.compare.two.proportions

Compares the rates of two variables against one another.
assert.valid.rds.data.frame

Does various checks and throws errors if x is not a valid rds.data.frame
bootstrap.contingency.test

Performs a bootstrap test of independance between two categorical variables
bootstrap.incidence

Calculates incidence and bootstrap confidence intervals for immunoassay data collected with RDS
LRT.value.trend

Compute a test of trend in prevalences based on a likelihood-ratio statistic
compute.weights

Compute estimates of the sampling weights of the respondent's observations based on various estimators
as.char

converts to character with minimal loss of precision for numeric variables
bottleneck.plot

Bottleneck Plot
control.rds.estimates

Auxiliary for Controlling RDS.bootstrap.intervals
MA.estimates

MA Estimates
convergence.plot

Convergence Plots
count.transitions

Counts the number or recruiter->recruitee transitions between different levels of the grouping variable.
faux

A Simulated RDS Data Set
[<-.rds.data.frame

indexing
get.number.of.recruits

Calculates the number of (direct) recuits for each respondent.
get.population.size

Returns the population size associated with the data.
get.rid

Get recruiter id
get.recruitment.time

Returns the recruitment time for each subject
cumulative.estimate

Calculates estimates at each successive wave of the sampling process
hcg.weights

homophily configuration graph weights
homophily.estimates

This function computes an estimate of the population homophily and the recruitment homophily based on a categorical variable.
get.wave

Calculates the depth of the recruitment tree (i.e. the recruitment wave) at each node.
get.stationary.distribution

Markov chain statistionary distribution
is.rds.data.frame

Is an instance of rds.data.frame
[.rds.data.frame

indexing
get.id

Get the subject id
get.net.size

Returns the network size of each subject (i.e. their degree).
get.h.hat

Get Horvitz-Thompson estimator assuming inclusion probability proportional to the inverse of network.var (i.e. degree).
fauxtime

A Simulated RDS Data Set
rdssampleC

Create RDS samples with given characteristics
rds.interval.estimate

An object of class rds.interval.estimate
fauxmadrona

A Simulated RDS Data Set with no seed dependency
get.seed.id

Calculates the root seed id for each node of the recruitement tree.
get.seed.rid

Gets the recruiter id associated with the seeds
differential.activity.estimates

Differential Activity between groups
rds.I.weights

RDS-I weights
fauxsycamore

A Simulated RDS Data Set with extreme seed dependency
impute.degree

Imputes missing degree values
print.rds.interval.estimate

Prints an rds.interval.estimate object
print.rds.data.frame

Displays an rds.data.frame
impute.visibility_mle

Estimates each person's personal visibility based on their self-reported degree and the number of their (direct) recruits. It uses the time the person was recruited as a factor in determining the number of recruits they produce.
is.rds.interval.estimate

Is an instance of rds.interval.estimate
print.summary.svyglm.RDS

Summarizing Generalized Linear Model Fits with Odds Ratios
export.rds.interval.estimate

Convert the output of print.rds.interval.estimate from a character data.frame to a numeric matrix
show.rds.data.frame

Displays an rds.data.frame
set.control.class

Set the class of the control list
plot.rds.data.frame

Diagnostic plots for the RDS recruitment process
is.rds.interval.estimate.list

Is an instance of rds.interval.estimate.list This is a (typically time ordered) sequence of RDS estimates of a comparable quantity
print.differential.activity.estimate

Prints an differential.activity.estimate object
read.rdsat

Import data from the 'RDSAT' format as an rds.data.frame
write.rdsat

Writes out the RDS tree in RDSAT format
ult

Extract or replace the *ult*imate (last) element of a vector or a list, or an element counting from the end.
vh.weights

Volz-Heckathorn (RDS-II) weights
rid.from.coupons

Determines the recruiter.id from recruitment coupon information
write.rdsobj

Export an rds.data.frame to file
reingold.tilford.plot

Plots the recruitment network using the Reingold Tilford algorithm.
read.rdsobj

Import data saved using write.rdsobj
gile.ss.weights

Weights using Giles SS estimator
has.recruitment.time

RDS data.frame has recruitment time information
print.pvalue.table

Displays a pvalue.table
print.rds.contin.bootstrap

Displays an rds.contin.bootstrap
write.graphviz

writes an rds.data.frame recruitment tree as a GraphViz file
write.netdraw

Writes out the RDS tree in NetDraw format
summary.svyglm.RDS

Summarizing Generalized Linear Model Fits with Odds Ratios for Survey Data
transition.counts.to.Markov.mle

calculates the mle. i.e. the row proportions of the transition matrix