Description Usage Value Examples
The function is a quick test of the rrisk.BayesZINB
function without setting parameters. Number of true negatives (n_true_neg) and true positives (n_true_pos) are sampled, all other parameters are fixed
prior.pi = c(1,1)
lambda_true <- rgamma(n_true_pos, a=6, b=2)
y_neg <- rep(0, n_true_neg)
y_pos <- rpois(n_true_pos, lambda_true)
y <- c(y_pos, y_neg)
1 |
Returns an instance of the
bayesmodelClass
class.
1 2 3 4 5 | ------------------------------------------
test example
------------------------------------------
res <- test_rrisk.BayesZINB()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.