HPDwidth: HPD Width Simulation

Description Usage Arguments Value Examples

View source: R/HPDwidth.R

Description

This function simulates multivariate data from a latent factor model to estimate the average width of the HPD intervals

Usage

1
2
HPDwidth(family, n, p, num.replicates = 1, mu.alpha = 0,
  sd.alpha = 1, mu.beta = 1, sd.beta = 1)

Arguments

family

- family of the distribution, "binomial" and "poisson" are currently supported

n

- number of sites.

p

- number of species

num.replicates

- number of simulations: default is 1

mu.alpha

- mean for alpha parameter: default is 0

sd.alpha

- sd for alpha parameter: default is 1

mu.beta

- mean for beta parameter: default is 0

sd.beta

- sd for beta parameter: default is 1

Value

width - average HPD across all latent factors

Examples

1
HPDwidth('binomial',10,10)

andyhoegh/UncertainOrd documentation built on Aug. 9, 2019, 4:33 p.m.