From 75b53faf1d483174c6775fbec2b3232a3931c50b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 21 Nov 2021 14:25:19 -0800 Subject: [PATCH] Document statistical functions --- doc/expressions.texi | 2 +- doc/matrices.texi | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/doc/expressions.texi b/doc/expressions.texi index 4f7b19d7ef..8e28ad5e24 100644 --- a/doc/expressions.texi +++ b/doc/expressions.texi @@ -1246,7 +1246,7 @@ Constraints: @var{a} > 0, @var{b} > 0, @var{lambda} >= 0, 0 <= @var{x} @end deftypefn @deftypefn {Function} {} PDF.BVNOR (@var{x0}, @var{x1}, @var{rho}) -@deftypefnx {Function} {} CDF.VBNOR (@var{x0}, @var{x1}, @var{rho}) +@deftypefnx {Function} {} CDF.BVNOR (@var{x0}, @var{x1}, @var{rho}) Bivariate normal distribution of two standard normal variables with correlation coefficient @var{rho}. Two variates @var{x0} and @var{x1} must be provided. Constraints: 0 <= @var{rho} <= 1, 0 <= @var{p} <= 1. diff --git a/doc/matrices.texi b/doc/matrices.texi index 5b3ff9a9ea..fa38a1784f 100644 --- a/doc/matrices.texi +++ b/doc/matrices.texi @@ -1708,8 +1708,25 @@ SWEEP(M, 3) @result{} @end format @end deffn -@node Matrix IO -@subsubsection I/O Function +@node Matrix Statistical Distribution Functions +@subsubsection Matrix Statistical Distribution Functions + +The matrix language can calculate several functions of standard +statistical distributions using the same syntax and semantics as in +@pspp{} transformation expressions. @xref{Statistical Distribution +Functions}, for details. + +The matrix language extends the PDF, CDF, SIG, IDF, NPDF, and NCDF +functions by allowing the first parameters to each of these functions +to be a vector or matrix with any dimensions. In addition, +@code{CDF.BVNOR} and @code{PDF.BVNOR} allow either or both of their +first two parameters to be vectors or matrices; if both are non-scalar +then they must have the same dimensions. In each case, the result is +a matrix or vector with the same dimensions as the input populated +with elementwise calculations. + +@node Matrix EOF Function +@subsubsection EOF Function This function works with files being used on the @code{READ} statement. -- 2.30.2