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

rid.from.coupons

Determines the recruiter.id from recruitment coupon information


Description

Determines the recruiter.id from recruitment coupon information

Usage

rid.from.coupons(
  data,
  subject.coupon = NULL,
  coupon.variables,
  subject.id = NULL,
  seed.id = "seed"
)

Arguments

data

a data.frame

subject.coupon

The variable representing the coupon returned by subject

coupon.variables

The variable representing the coupon ids given to the subject

subject.id

The variable representing the subject's id

seed.id

The recruiter.id to assign to seed subjects.

Examples

fpath <- system.file("extdata", "nyjazz.csv", package="RDS")
dat <- read.csv(fpath)
dat$recruiter.id <- rid.from.coupons(dat,"own.coupon",
                      paste0("coupon.",1:7),"id")

#create and rds.data.frame
rds <- as.rds.data.frame(dat,network.size="network.size")

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.