Description Usage Arguments Value
View source: R/1-onlineLogMixture.R
Function takes the current model parameters, and an observation to compute the log likelihood of the observation
1 | ll_compute(y, X, beta, ak = 1, wk = 1)
|
y |
A scalar with value 0 or 1; the dependent variable |
X |
The feature vector of the current observation |
beta |
A $k$ by $p$ matrix with the true regression coefficients for each mixture component |
ak |
A vector of length k summing to 1 for the mixture probabilties |
wk |
The mixture weights (posterior probablity of the data point for each component) |
A list containing the log likelihood of the datapoint and the max log likelihood of the datapoint
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.