polyaGradient: Obtain gradient of the marginal Dirichlet-multinomial...

View source: R/polyaGradient.R

polyaGradientR Documentation

Obtain gradient of the marginal Dirichlet-multinomial likelihood

Description

Obtain gradient of the marginal Dirichlet-multinomial likelihood

Usage

polyaGradient(D, gamma, Nj = rowSums(D), K = ncol(D))

Arguments

D

matrix (JxK) of counts; each row is a sample from a MN distribution with K categories

gamma

current value of prior concentration parameter

Nj

sample sizes of the J groups

K

number of categories

Value

gradient


fabPrediction documentation built on May 29, 2024, 7:05 a.m.