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 Dec. 15, 2024, 6:02 a.m.