autoCorrCoin: Create An Autocorrelated Coin

Description Usage Arguments Author(s)

Description

Creates an autocorrelated coin

Usage

1
2
autoCorrCoin(success = "H", failure = "T", initial_prob = 0.5,
  p_given1 = 0.5, p_given0 = 0.5)

Arguments

success

Denotes "success" in the Bernoulli Trial. Default is "H".

failure

Denotes "failure" in the Bernoulli Trial. Default is "F".

initial_prob

The initial probability of "success". Must be numeric and be between 0 and 1. Default is 0.5.

p_given1

The probability of "success" given the previous trial was a "success". Must be numeric and be between 0 and 1. Default is 0.5.

p_given0

The probability of "success" given the previous trial was a "failure". Must be numeric and be between 0 and 1. Default is 0.5.

Author(s)

Justin Strate


jstrat1618/cointosses documentation built on May 31, 2019, 11:51 p.m.