z.pr.u: package internal function

Description Usage Arguments Examples

View source: R/z.pr.u.R

Description

package internal function

Usage

1
z.pr.u(z, hk, mu, sigma, ph, H, n)

Arguments

z
hk
mu
sigma
ph
H
n

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
  Nmax = 100
  K = 5
  H = 10
  M = 20
  n = sample(Nmax, M, replace=TRUE)

  z = abs(rnorm(sum(n)))
  mu = abs(rnorm(K))
  sigma = 1/rgamma(n=K, shape=10, rate=10)

  hk = sample(K,M*H, replace=TRUE)

  ph = as.vector(sapply(1:M, function(x){lambda.u(rbeta(H, 1, 1))}))

  z.pr.u(z, hk, mu, sigma, ph, H, n)

BHTSpack documentation built on Feb. 8, 2021, 5:07 p.m.