Description Usage Arguments Details Value Examples
Log-likelihood of the Bernoulli distribution, commonly used in optimisation procedures for maximisation.
1 | loglik_lr(theta, x, y)
|
theta |
parameters relating to |
x |
explanatory variables in model matrix |
y |
binary response variable |
The log-likelihood is written
∑_{i=1}^n y \log(σ(Xβ)) + (1-y) \log(1-σ(Xβ))
single value, the log-likelihood of the Bernoulli distribution with fixed x
and y
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.