Last data update: 2014.03.03

R: Density Function for Multivariate Normal-Binary Distribution...
dmvnbR Documentation

Density Function for Multivariate Normal-Binary Distribution for Use With RV-Shift Models

Description

This function is intended for internal use only. It calculates the density function of a mixed multivariate normal-binary distribution for use in the q1q2l.

Usage

dmvnb(bug, sims, MU, COV, P)

Arguments

bug

A BUGS model created in the tsbugs package.

sims

A data.frame of simulated parameter values with column names labelled according to output from the R2OpenBUGS package.

MU

A vector of the mean parameter values (over a simulated data set)

COV

A matrix of parameter variance-covariances (over a simulated data set)

P

A data.frame of model fits for each binary parameter, used in the simulation of equivalent parameters from a normalised density. Rows represent simulation number, and columns binary parameters.

Note

Function based on method suggested by Jon Forster.

Author(s)

Guy J. Abel and Jackie Wong Siaw Tze

Results