View source: R/RDS.compare.proportions.R
RDS.compare.proportions | R Documentation |
Compares the rates of two variables against one another.
RDS.compare.proportions(first.interval, second.interval, M = 10000)
first.interval |
An |
second.interval |
An |
M |
The number of bootstrap resamplings to use |
This function preforms a bootstrap test comparing the the rates of two variables against one another.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.