generate_one_each_logitp_mu_sigmasq: Generates one sample for each triplet of (log_odd, mu) with a...

Description Usage Arguments Details Value Examples

View source: R/zero_gen.R

Description

Generates one sample for each pair of (log_odd, mu) with a fixed sigmasq under the pms parametrization.

Usage

1
generate_one_each_logitp_mu_sigmasq(log_odds, mus, sigmasq)

Arguments

log_odds

A vector of log odds.

mus

A vector of mus, of equal length as log_odds.

sigmasq

A positive number, the sigma squared.

Details

Draws one example from the 1-d Hurdle with parameters log_odds[i], mus[i], sigmasq, i.e. a mixture of bernoulli and Gaussian with log odds log_odds[i] for the bernoulli and conditional mean mus[i] and variance sigmasq for the Gaussian part, for each i.

Value

A vector of the same size as log_odds.

Examples

1

sqyu/ZiDAG documentation built on Jan. 19, 2021, 4:11 p.m.