Learn R Programming

rlecuyer (version 0.3-8)

SetAntithetic: Switch between U and 1-U variates

Description

Switches between \(U\) and \(1-U\) variates.

Usage

.lec.SetAntithetic (name, anti=FALSE)

Value

None.

Arguments

name

name of the stream.

anti

if anti=TRUE then antithetic variates are generated (i.e. \(1-U\)), until this function is called again with anti=FALSE.