R/dgp.R
draw_Zp.Rd
Draw the covariate Zp ~ Uniform{1, 2, 3, 4, 5}
draw_Zp(n)
Integer. Sample size.
Integer vector of length n.
Zp <- draw_Zp(100) table(Zp) #> Zp #> 1 2 3 4 5 #> 21 19 17 23 20