Learn R Programming

RDS (version 0.9-9)

bottleneck.plot: Bottleneck Plot

Description

Bottleneck Plot

Usage

bottleneck.plot(
  rds.data,
  outcome.variable,
  est.func = RDS.II.estimates,
  as.factor = FALSE,
  n.eval.points = 25,
  ...
)

Arguments

rds.data

An rds.data.frame.

outcome.variable

A character vector of outcome variables.

est.func

A function taking rds.data and outcome.variable as parameters and returning an rds.weighted.estimate object.

as.factor

Convert all outcome variables to factors

n.eval.points

number of evaluation points to calculate the estimates at

...

additional parameters for est.func.

References

Krista J. Gile, Lisa G. Johnston, Matthew J. Salganik Diagnostics for Respondent-driven Sampling eprint arXiv:1209.6254, 2012

Examples

Run this code
data(fauxmadrona)
bottleneck.plot(fauxmadrona,"disease")

Run the code above in your browser using DataLab