sim.pastor {chngpt} | R Documentation |
Simulate data according to one of the scenarios considered in Pastor-Barriuso et al 2003
Description
Simulate data according to one of the scenarios considered in Pastor-Barriuso et al 2003
Usage
sim.pastor(seed)
Arguments
seed |
Seed for the random number generator. |
Value
A data frame with columns: y, x.star, x.star.expit, and x.bin.med (x.star dichotomized at median).
Examples
dat=sim.pastor(seed=1)
[Package chngpt version 2023.11-29 Index]