Learn R Programming

RDS (version 0.9-9)

convergence.plot: Convergence Plots

Description

This function creates diagnostic convergence plots for RDS estimators.

Usage

convergence.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(faux)
convergence.plot(faux,c("X","Y"))

Run the code above in your browser using DataLab