rds.interval.estimate {RDS} | R Documentation |
An object of class rds.interval.estimate
Description
This function creates an object of class rds.interval.estimate
.
Usage
rds.interval.estimate(
estimate,
outcome.variable,
weight.type,
uncertainty,
weights,
N = NULL,
conf.level = 0.95,
csubset = ""
)
Arguments
estimate |
The numerical point estimate of proportion of the
|
outcome.variable |
A string giving the name of the variable in the
|
weight.type |
A string giving the type of estimator to use. The options
are |
uncertainty |
A string giving the type of uncertainty estimator to use.
The options are |
weights |
A numerical vector of sampling weights for the sample, in order of the sample. They should be inversely proportional to the first-order inclusion probabilites, although this is not assessed or inforced. |
N |
An estimate of the number of members of the population being
sampled. If |
conf.level |
The confidence level for the confidence intervals. The default is 0.95 for 95%. |
csubset |
A character string representing text to add to the output label. Typically this will be the expression used it define the subset of the data used for the estimate. |
Value
An object of class rds.interval.estimate
is returned. This is
a list with components
estimate
: The numerical point estimate of proportion of thetrait.variable
.interval
: A matrix with six columns and one row per category oftrait.variable
:point estimate
: The HT estimate of the population mean.95% Lower Bound
: Lower 95% confidence bound.95% Upper Bound
: Upper 95% confidence bound.Design Effect
: The design effect of the RDS.s.e.
: Standard error.n
: Count of the number of sample values with that value of the trait.
Author(s)
Mark S. Handcock
References
Gile, Krista J., Handcock, Mark S., 2010. Respondent-driven Sampling: An Assessment of Current Methodology, Sociological Methodology, 40, 285-327. <doi:10.1111/j.1467-9531.2010.01223.x>
Gile, Krista J., Beaudry, Isabelle S. and Handcock, Mark S., 2018 Methods for Inference from Respondent-Driven Sampling Data, Annual Review of Statistics and Its Application <doi:10.1146/annurev-statistics-031017-100704>.
Salganik, M., Heckathorn, D. D., 2004. Sampling and estimation in hidden populations using respondent-driven sampling. Sociological Methodology 34, 193-239.
Volz, E., Heckathorn, D., 2008. Probability based estimation theory for Respondent Driven Sampling. The Journal of Official Statistics 24 (1), 79-97.
Examples
data(faux)
RDS.I.estimates(rds.data=faux,outcome.variable='X',smoothed=TRUE)