Paper for the Stata RDS package