Arguments
traits
a data frame, the first column giving ID numbers for the nodes in the social network and the remaining columns giving continuous or discrete (not categorical) traits for each node.
adj.mat
a matrix of 0's and 1's, the adjacency matrix for the social network.
n
a positive integer, the size of the sample to be drawn, with default 100.
num.seeds
a positive integer, the number of seeds from which the RDS begins, with default 1.
num.samp
a positive integer, the maximum number of recruits for each respondent, with default 2.
num.prob
a vector of positive numbers with length num.samp + 1 which sum to 1, the probability of each respondent recruiting 0, 1, ..., num.samp new respondents, with default c(0, ..., 1).
replace
a boolean, whether sampling from the social network is performed with replacement, with default TRUE.