Learn R Programming

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

RDS (version 0.8-1)

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

411

Version

0.8-1

License

LGPL-2.1

Maintainer

Mark S Handcock

Last Published

December 1st, 2017

Functions in RDS (0.8-1)

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.
MA.estimates

MA Estimates
RDS.II.estimates

RDS-II Estimates
RDS.HCG.estimates

Homophily Configuration Graph Estimates
RDS.compare.proportions

Compares the rates of two variables against one another.
RDS.bootstrap.intervals

RDS Bootstrap Interval Estimates
LRT.trend.test

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

Gile's SS Estimates
LRT.value.trend

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

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

Compute RDS-I Estimates
as.rds.data.frame

Coerces a data.frame object into an rds.data.frame object.
bottleneck.plot

Bottleneck Plot
assert.valid.rds.data.frame

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

Compute estimates of the sampling weights of the respondent's observations based on various estimators
control.rds.estimates

Auxiliary for Controlling RDS.bootstrap.intervals
as.char

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

Convergence Plots
bootstrap.contingency.test

Performs a bootstrap test of independance between two categorical variables
get.h.hat

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

Calculates incidence and bootstrap confidence intervals for immunoassay data collected with RDS
get.seed.id

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

A Simulated RDS Data Set
get.seed.rid

Gets the recruiter id assosiated with the seeds
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.
fauxsycamore

A Simulated RDS Data Set with extreme seed dependency
differential.activity.estimates

Differential Activity between groups
get.stationary.distribution

Markov chain statistionary distribution
[<-.rds.data.frame

indexing
get.wave

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

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

indexing
get.recruitment.time

Returns the recruitment time for each subject
is.rds.data.frame

Is an instance of rds.data.frame
impute.degree

Imputes missing degree values
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.
cumulative.estimate

Calculates estimates at each successive wave of the sampling process
get.rid

Get recruiter id
get.number.of.recruits

Calculates the number of (direct) recuits for each respondent.
is.rds.interval.estimate

Is an instance of rds.interval.estimate
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
get.population.size

Returns the population size associated with the data.
write.rdsobj

Export an rds.data.frame to file
hcg.weights

homophily configuration graph weights
rds.interval.estimate

An object of class rds.interval.estimate
read.rdsat

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

Displays an rds.data.frame
rid.from.coupons

Determines the recruiter.id from recruitment coupon information
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
plot.rds.data.frame

Diagnostic plots for the RDS recruitment process
summary.svyglm.RDS

Summarizing Generalized Linear Model Fits with Odds Ratios for Survey Data
print.differential.activity.estimate

Prints an differential.activity.estimate object
write.graphviz

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

Writes out the RDS tree in RDSAT format
write.netdraw

Writes out the RDS tree in NetDraw format
homophily.estimates

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

Volz-Heckathorn (RDS-II) weights
print.pvalue.table

Displays a pvalue.table
gile.ss.weights

Weights using Giles SS estimator
has.recruitment.time

RDS data.frame has recruitment time information
print.rds.contin.bootstrap

Displays an rds.contin.bootstrap
print.summary.svyglm.RDS

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

calculates the mle. i.e. the row proportions of the transition matrix
rds.I.weights

RDS-I weights
export.rds.interval.estimate

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

Import data saved using write.rdsobj
get.id

Get the subject id
reingold.tilford.plot

Plots the recruitment network using the Reingold Tilford algorithm.
get.net.size

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