Mercurial > hg > octave-lyh
comparison scripts/statistics/models/logistic_regression_derivatives.m @ 5428:2a16423e4aa0
[project @ 2005-08-23 18:38:27 by jwe]
author | jwe |
---|---|
date | Tue, 23 Aug 2005 18:38:28 +0000 |
parents | 4c8a2e4e0717 |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
5427:a92afe70fb8d | 5428:2a16423e4aa0 |
---|---|
22 ## Called by logistic_regression. Calculates derivates of the | 22 ## Called by logistic_regression. Calculates derivates of the |
23 ## log-likelihood for ordinal logistic regression model. | 23 ## log-likelihood for ordinal logistic regression model. |
24 ## @end deftypefn | 24 ## @end deftypefn |
25 | 25 |
26 ## Author: Gordon K. Smyth <gks@maths.uq.oz.au> | 26 ## Author: Gordon K. Smyth <gks@maths.uq.oz.au> |
27 ## Adapted-By: KH <Kurt.Hornik@ci.tuwien.ac.at> | 27 ## Adapted-By: KH <Kurt.Hornik@wu-wien.ac.at> |
28 ## Description: Derivates of log-likelihood in logistic regression | 28 ## Description: Derivates of log-likelihood in logistic regression |
29 | 29 |
30 function [dl, d2l] = logistic_regression_derivatives (x, z, z1, g, g1, p) | 30 function [dl, d2l] = logistic_regression_derivatives (x, z, z1, g, g1, p) |
31 | 31 |
32 ## first derivative | 32 ## first derivative |