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

View source: R/simulations.R

sim.pastorR 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)


chngpt documentation built on Feb. 16, 2023, 10:38 p.m.