rbern: A function to simulate Bernoulli data

rbernR Documentation

A function to simulate Bernoulli data

Description

See McElreaths Rethinking package for details

Usage

rbern(n, prob = 0.5)

Arguments

n

Number of samples

prob

Probability

Value

Binary samples


ctross/STRAND documentation built on Nov. 14, 2024, 11:50 p.m.