Description Usage Arguments Value Examples
Construct a log-likelihood function in the parameters b, for the given link family.
1 2 | make.logLike(x, y, weight = c(1), class_probs = c(1),
family = poisson)
|
x |
An n-by-p design matrix. |
y |
A vector of observation of length n. |
weight |
A n length vector of observation weight terms. This is currently designed to be either the exposure for a Poisson model or the number of trials for a Logistic model. |
class_probs |
An n length vector of probabilities for the proposed model. |
family |
The GLM family being considered. |
A model likelihood function. Expects one argument which is a *p* length vector of parameters.
1 2 3 4 | x <- model.matrix(~ factor(wool) + factor(tension), warpbreaks)
y <- warpbreaks$breaks
make.logLike(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.