test_rrisk.BayesZINB: Quick test of the 'rrisk.BayesZINB' function

Description Usage Value Examples

Description

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)

Usage

1

Value

Returns an instance of the bayesmodelClass class.

Examples

1
2
3
4
5
------------------------------------------
test example
------------------------------------------

res <- test_rrisk.BayesZINB()

BfRstats/rriskBayes2 documentation built on May 5, 2019, 2:42 p.m.