diff scripts/statistics/base/logit.m @ 6754:451b346d8c2f

[project @ 2007-06-25 17:31:46 by jwe]
author jwe
date Mon, 25 Jun 2007 17:31:47 +0000
parents 34f96dd5441b
children b6e2ab6a8421
line wrap: on
line diff
--- a/scripts/statistics/base/logit.m
+++ b/scripts/statistics/base/logit.m
@@ -19,8 +19,18 @@
 
 ## -*- texinfo -*-
 ## @deftypefn {Function File} {} logit (@var{p})
-## For each component of @var{p}, return the logit @code{log (@var{p} /
-## (1-@var{p}))} of @var{p}.
+## For each component of @var{p}, return the logit of @var{p} defined as
+## @iftex
+## @tex
+## $$
+## {\rm logit}(p) = \log\Big({p \over 1-p}\Big)
+## $$
+## @end tex
+## @ifnottex
+## @example
+## logit(@var{p}) = log (@var{p} / (1-@var{p}))
+## @end example
+## @end ifnottex
 ## @end deftypefn
 
 ## Author: KH <Kurt.Hornik@wu-wien.ac.at>
@@ -34,4 +44,4 @@
     print_usage ();
   endif
 
-endfunction
\ No newline at end of file
+endfunction