prob_heads_linear.Rd
Compute the probability of heads with each flip given a linear change model.
prob_heads_linear(nflips, preflip_prob = 0.5, slope = 0.1)
nflips | Total number of flips (heads and tails) |
---|---|
preflip_prob | Probability of heads before the coin is handled |
slope | How much the probability changes each time the coin is flipped |
Vector of probability of heads for the first flip, second flip, etc.