cand_dgamma: cand_dgamma

Description Usage Arguments Value Examples

Description

The function cand_dgamma is meant for computing the matrix as the input for the function sample_pos_z where the family of densities are gamma. See also sample_pos_z.

Usage

1
cand_dgamma(x, s, r)

Arguments

x

a vector of values at which the gamma densities are evaluated.

s

a vector of shape parameters.

r

a vector of rate parameters.

Value

A matrix with (i,j) component equals the j-th gamma density evaluated at x_i.

Examples

1
2
3
4
5
N <- 500
alpha <- c(2.928, 2.979, 2.754)
beta <- c(0.124, 0.238, 0.045)
theta <-  rgamma(N, shape=2.6, rate=0.3)
d.ordinates <- mydgamma(theta, alpha, beta)

tamustatsy/bcdd documentation built on May 7, 2019, 9:39 a.m.