predict_binomial: Simulate Binary Values

View source: R/simulate.R

predict_binomialR Documentation

Simulate Binary Values

Description

This internal function simulates covariate values from a binomial distribution.

Usage

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.


CausalInference/gfoRmula documentation built on Oct. 1, 2024, 8:36 p.m.