Description Usage Arguments Value

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 \times 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

Nth-iteration-labs/ofmlr documentation built on May 22, 2019, 1:50 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.