Description Usage Arguments Details Value Author(s) References Examples
BIiwls
performs estimation of the coefficients of binomial logistic regressions by iterative wieghted least squares method.
1 | BIiwls(y,X,m,maxiter)
|
y |
response dependent variable which follows a binomial distribution. |
X |
model matrix. |
m |
number of trials in each binomial observation. |
maxiter |
maximum number of iterations in the method. |
The iterative weighted least squares (IWLS) is a general algorithm to find the maximum likelihood estimations (mle) and standard deviations in generalized linear models. There are several ways to derive it, but the one that has been developed in this function is via the Newton-Raphson method. It consists of making a Taylor expansion in the score function, the first derivate of the log-likelihood, around the mle. This especific IWLS, BIiwls
, has been developed to find out the mle and the standard errors in logistic regression by the introduction of a dependent variable, a matrix model of the regression covariates and the number of trials of the binomial dependent variable.
beta |
maximum likelihood estimations of the logistic regression coefficients. |
vcov |
variance-covariance matrix of the estimated regression coefficients. |
iter |
number of iterations of the algorithm. |
J. Najera-Zuloaga
D.-J. Lee
I. Arostegui
Pawitan Y. (2001): In All Likelihood: Statistical Modelling and Inference Using Likelihood, Oxford University Press
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.