bugsLikelihood: Likelihood Functions for Generating OpenBUGS Model File

Description Usage Arguments Value Examples

View source: R/bugsLikelihood.R

Description

Likelihood functions for generating OpenBUGS model file.

Usage

1

Arguments

fd

A string that specifies the parent distribution.

sd

A string that specifies the sub-family distribution.

Value

A string to be written in the BUGS model file.

Examples

1
bugsLikelihood('t2','t2')

Example output

[1] "\n    logLike[i] <-  2 * log(sigma[i])  -(3/2) * log(logpart1[i] + logpart2[i] + logpart3[i])\n    logpart1[i] <-  1 + 2 * sqrt(2) * mu[i] * sqrt(1 - y[i]) * sqrt(y[i])   \n    logpart2[i] <-  2 * (-2 + pow(mu[i], 2) + 2 * pow(sigma[i], 2)) * y[i]\n    logpart3[i] <- -4 * mu[i] * sqrt(2 - 2 * y[i]) * pow(y[i], 1.5) - 2 * (-2 + pow(mu[i], 2) + 2 * pow(sigma[i], 2)) * pow(y[i], 2)"

cdfquantreg documentation built on June 13, 2021, 9:05 a.m.