Description Usage Arguments Details Value Examples
Generates one sample for each pair of (log_odd, mu) with a fixed sigmasq under the pms parametrization.
1 | generate_one_each_logitp_mu_sigmasq(log_odds, mus, sigmasq)
|
log_odds |
A vector of log odds. |
mus |
A vector of mus, of equal length as |
sigmasq |
A positive number, the sigma squared. |
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.
A vector of the same size as log_odds.
1 | generate_one_each_logitp_mu_sigmasq(-3:3, 0:6/10, 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.