powered by
Simulate data according to one of the scenarios considered in Pastor-Barriuso et al 2003
sim.pastor(seed)
A data frame with columns: y, x.star, x.star.expit, and x.bin.med (x.star dichotomized at median).
Seed for the random number generator.
dat=sim.pastor(seed=1)
Run the code above in your browser using DataLab