View source: R/get_prob_sign.R
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).
1 |
data |
A binary data set. |
xIndices |
A vector of input variables indices. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.