sim.pastor: Simulate data according to one of the scenarios considered in...

Description Usage Arguments Value Examples

View source: R/simulations.R

Description

Simulate data according to one of the scenarios considered in Pastor-Barriuso et al 2003

Usage

1
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

1
dat=sim.pastor(seed=1)

chngpt documentation built on Oct. 10, 2017, 1:09 a.m.

Related to sim.pastor in chngpt...