Navigation

Operators and Keywords

Function List:

C++ API

logistic_regression_likelihood.m File Reference


Variables

 function [g, g1, p, dev]
endif e = exp ([z, x] * beta)
 e1 = exp ([z1, x] * beta)
 g = e ./ (1 + e)
 g1 = e1 ./ (1 + e1)
 p = g - g1
 dev = -2 * sum (log (p))

Variable Documentation

dev = -2 * sum (log (p))

endif e = exp ([z, x] * beta)

e1 = exp ([z1, x] * beta)

function[g, g1, p, dev]

Initial value:

 logistic_regression_likelihood (y, x, beta, z, z1)

  if (nargin != 5)
    print_usage ()

g = e ./ (1 + e)

g1 = e1 ./ (1 + e1)

p = g - g1