prod_pijk: Auxiliary function to fim_nb()

Description Usage Arguments

View source: R/prod_pijk.R

Description

This is an auxiliary function to fim_nb(). It calculates \prod_j p(x_ij|y=k) for a single data point and store it in a vector for future use. It is mainly for speed up the calculation of fim_nb(). Notice that this function is almost the same as p_ijk(), except that this function calculte the product over all input variables x_j.

Usage

1
prod_pijk(dataPoint, pars, xIndices, yValue)

Arguments

dataPoint

A single data point in the given data set.

pars

A list of MLE of NB parameters.

xIndices

A vector of input variables' indices.

yValue

The value of the output variable. The current version of mml_nb only takes binar variables, so the possible y values are 0, 1.


kelvinyangli/mbmml documentation built on June 29, 2020, 3:12 a.m.