Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

RDS.compare.proportions

Compares the rates of two variables against one another.


Description

Compares the rates of two variables against one another.

Usage

RDS.compare.proportions(first.interval, second.interval, M = 10000)

Arguments

first.interval

An rds.interval.estimate object fit with either "Gile" or "Salganik" uncertainty.

second.interval

An rds.interval.estimate object fit with either "Gile" or "Salganik" uncertainty.

M

The number of bootstrap resamplings to use

Details

This function preforms a bootstrap test comparing the the rates of two variables against one another.

Examples

## Not run: 
data(faux)
int1 <- RDS.bootstrap.intervals(faux, outcome.variable=c("X"), 
weight.type="RDS-II", uncertainty="Salganik", N=1000,
number.ss.samples.per.iteration=1000, 
	confidence.level=0.95, number.of.bootstrap.samples=100)
int2 <- RDS.bootstrap.intervals(faux, outcome.variable=c("Y"), 
	weight.type="RDS-II", uncertainty="Salganik", N=1000,
number.ss.samples.per.iteration=1000,
confidence.level=0.95, number.of.bootstrap.samples=100)
RDS.compare.proportions(int1,int2)

## End(Not run)

RDS

Respondent-Driven Sampling

v0.9-3
LGPL-2.1
Authors
Mark S. Handcock [aut, cre], Krista J. Gile [aut], Ian E. Fellows [aut], W. Whipple Neely [aut]
Initial release
2021-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.