coin_V2: A helper function to flip a random coin after a few rounds of...

View source: R/coin_V2.R

coin_V2R Documentation

A helper function to flip a random coin after a few rounds of fixed results. This prevents sequential computer introduced errors.

Description

A helper function to flip a random coin after a few rounds of fixed results. This prevents sequential computer introduced errors.

Usage

coin_V2(p, i, laged)

Arguments

p

The probability of a head.

i

The round ID code.

laged

A window of time to check if the computer has already introduced an error.


ctross/PrisonR documentation built on July 1, 2024, 11:23 p.m.