Description Usage Arguments Value Examples
Carry our the Newton-Raphson optimization of the parameters for given weights via the pracma hessian,
1 2 |
u |
A 'model.loglike' function. |
b |
The starting parameters. |
x |
An n-by-p design matrix. |
y |
A vector of observation of length n. |
class_probs |
An n length vector of probabilities for the proposed model. |
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. |
tol |
The tolerance to repeat the Newton-Raphson optimization till. |
debug |
Debugging flag - set to TRUE to output step-by-step change in parameter values. |
family |
The GLM family being considered. |
maxiter |
Maximum number of NR steps to take. |
The parameter values on convergence.
1 2 3 4 5 6 7 8 | x <- model.matrix(~ 1 + factor(wool) + factor(tension), data = warpbreaks)
y <- warpbreaks$breaks
class_probs = rep(1,54)
b <- c(1, 1, 1, 1)
u <- make.logLike(x, y, class_probs = class_probs)
em.fit_pracma(u, b, x, y, class_probs, weight = c(1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.