dmvnb: Density Function for Multivariate Normal-Binary Distribution...

Description Usage Arguments Note Author(s)

View source: R/dmvnb.R

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

1
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


tsbridge documentation built on May 30, 2017, 1:14 a.m.