get_prob_sign: Auxiliary to fim_nb()

Description Usage Arguments

View source: R/get_prob_sign.R

Description

This function makes a matrix of 1 and -1 that is used to change sign of pik0 and pik1 when calculating FIM. When x[i, k] = 1 (i.e., 1st level), then 1, meaning no change; when x[i, k] = 2 (i.e., 2nd level), then -1, meaning change sign, since this parameter is expressed by 1 - p(xi = 1|y=1 or 0).

Usage

1

Arguments

data

A binary data set.

xIndices

A vector of input variables indices.


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