predict_binomial: Simulate Binary Values

Description Usage Arguments Value

View source: R/simulate.R

Description

This internal function simulates covariate values from a binomial distribution.

Usage

1
predict_binomial(x, size, prob)

Arguments

x

Integer specifying the number of observations to be simulated.

size

Integer specifying the number of trials.

prob

Numeric vector specifying the probabilities.

Value

Numeric vector of simulated covariate values under the binomial distribution.


gfoRmula documentation built on July 13, 2021, 9:07 a.m.