Learn R Programming

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

RDS (version 0.9-9)

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) , Gile and Handcock (2015) and Gile and Beaudry and Handcock and Ott (2018) .

Copy Link

Version

Install

install.packages('RDS')

Monthly Downloads

579

Version

0.9-9

License

LGPL-2.1

Maintainer

Last Published

February 1st, 2024

Functions in RDS (0.9-9)

control.rds.estimates

Auxiliary for Controlling RDS.bootstrap.intervals
as.rds.data.frame

Coerces a data.frame object into an rds.data.frame object.
control.list.accessor

Named element accessor for ergm control lists
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
RDS.compare.two.proportions

Compares the rates of two variables against one another.
bottleneck.plot

Bottleneck Plot
as.char

converts to character with minimal loss of precision for numeric variables
cumulative.estimate

Calculates estimates at each successive wave of the sampling process
convergence.plot

Convergence Plots
fauxsycamore

A Simulated RDS Data Set with extreme seed dependency
assert.valid.rds.data.frame

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

A Simulated RDS Data Set
faux

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

indexing
get.recruitment.time

Returns the recruitment time for each subject
export.rds.interval.estimate

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

Returns the population size associated with the data.
is.rds.data.frame

Is an instance of rds.data.frame
get.stationary.distribution

Markov chain statistionary distribution
homophily.estimates

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

Imputes missing degree values
compute.weights

Compute estimates of the sampling weights of the respondent's observations based on various estimators
get.seed.rid

Gets the recruiter id associated with the seeds
[.rds.data.frame

indexing
fauxmadrona

A Simulated RDS Data Set with no seed dependency
count.transitions

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

Calculates the root seed id for each node of the recruitement tree.
plot.rds.data.frame

Diagnostic plots for the RDS recruitment process
get.id

Get the subject id
get.h.hat

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

Prints an differential.activity.estimate object
get.rid

Get recruiter id
differential.activity.estimates

Differential Activity between groups
get.number.of.recruits

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

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

Calculates the depth of the recruitment tree (i.e. the recruitment wave) at each node.
has.recruitment.time

RDS data.frame has recruitment time information
impute.visibility

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.
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.
hcg.weights

homophily configuration graph weights
print.rds.data.frame

Displays an rds.data.frame
print.summary.svyglm.RDS

Summarizing Generalized Linear Model Fits with Odds Ratios
print.pvalue.table

Displays a pvalue.table
gile.ss.weights

Weights using Giles SS estimator
print.rds.contin.bootstrap

Displays an rds.contin.bootstrap
print.rds.interval.estimate

Prints an rds.interval.estimate object
set.control.class

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

Displays an rds.data.frame
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
read.rdsat

Import data from the 'RDSAT' format as an rds.data.frame
rds.interval.estimate

An object of class rds.interval.estimate
rdssampleC

Create RDS samples with given characteristics
read.rdsobj

Import data saved using write.rdsobj
write.graphviz

writes an rds.data.frame recruitment tree as a GraphViz file
rds.I.weights

RDS-I weights
write.netdraw

Writes out the RDS tree in NetDraw format
reingold.tilford.plot

Plots the recruitment network using the Reingold Tilford algorithm.
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
is.rds.interval.estimate

Is an instance of rds.interval.estimate
transition.counts.to.Markov.mle

calculates the mle. i.e. the row proportions of the transition matrix
summary.svyglm.RDS

Summarizing Generalized Linear Model Fits with Odds Ratios for Survey Data
write.rdsat

Writes out the RDS tree in RDSAT format
write.rdsobj

Export an rds.data.frame to file
rid.from.coupons

Determines the recruiter.id from recruitment coupon information
LRT.value.trend

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

Compute a test of trend in prevalences based on a likelihood-ratio statistic
RDS.compare.proportions

Compares the rates of two variables against one another.
RDS.HCG.estimates

Homophily Configuration Graph Estimates
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
MA.estimates

MA Estimates
RDS-package

RDS: Respondent-Driven Sampling