857857\pard\pardeftab 720 \li 720 \fi - 446 \ri 720 \sb 180 \sa 60 \partightenfactor 0
858858
859859\f 1 \b 0 \fs 18 \cf 2 \expnd 0 \expndtw 0 \kerning 0
860- (float$)cor(numeric\'a0 x, numeric\'a0 y)\
860+ (float)cor(numeric\'a0 x, \kerning 1 \expnd 0 \expndtw 0 [Nif\'a0 y\'a0 =\'a0 NULL]\expnd 0 \expndtw 0 \kerning 0
861+ )\
861862\pard\pardeftab 720 \li 547 \ri 720 \sb 60 \sa 60 \partightenfactor 0
862863
863- \f 3 \fs 20 \cf 2 Returns the
864+ \f 3 \fs 20 \cf 2 \kerning 1 \expnd 0 \expndtw 0 Returns the
864865\f 0 \b sample Pearson\'92 s correlation coefficient
865- \f 3 \b 0 between
866+ \f 3 \b 0 between vectors
866867\f 1 \fs 18 x
867868\f 3 \fs 20 and
868869\f 1 \fs 18 y
869870\f 3 \fs 20 , usually denoted
870871\f 7 \i r
871- \f 3 \i 0 . The sizes of
872+ \f 3 \i 0 . If
873+ \f 1 \fs 18 y
874+ \f 3 \fs 20 is
875+ \f 1 \fs 18 NULL
876+ \f 3 \fs 20 , it is considered to have the same value as
877+ \f 1 \fs 18 x
878+ \f 3 \fs 20 ; for vector
879+ \f 1 \fs 18 x
880+ \f 3 \fs 20 this is not very useful (since the correlation of
881+ \f 1 \fs 18 x
882+ \f 3 \fs 20 with itself is
883+ \f 1 \fs 18 1.0
884+ \f 3 \fs 20 by definition), but it is more useful for calculating a correlation matrix using the columns of
885+ \f 1 \fs 18 x
886+ \f 3 \fs 20 (see below). The sizes of
872887\f 1 \fs 18 x
873888\f 3 \fs 20 and
874889\f 1 \fs 18 y
880895\f 1 \fs 18 0
881896\f 3 \fs 20 or
882897\f 1 \fs 18 1
883- \f 3 \fs 20 , the return value will be
898+ \f 3 \fs 20 , an error will be raised (a change in behavior from Eidos 4.0; it used to return
884899\f 1 \fs 18 NULL
885- \f 3 \fs 20 . At present it is illegal to call
900+ \f 3 \fs 20 ). The return value will be a singleton
901+ \f 1 \fs 18 float
902+ \f 3 \fs 20 .\
903+ It is also legal to call
886904\f 1 \fs 18 cor()
887- \f 3 \fs 20 with a matrix or array argument, because the desired behavior in that case has not yet been implemented.\
905+ \f 3 \fs 20 with matrix
906+ \f 1 \fs 18 x
907+ \f 3 \fs 20 and/or
908+ \f 1 \fs 18 y
909+ \f 3 \fs 20 . In this case the return value will be a correlation matrix between x and y. Each column of
910+ \f 1 \fs 18 x
911+ \f 3 \fs 20 will be represented by one row of the result (or if
912+ \f 1 \fs 18 x
913+ \f 3 \fs 20 is a vector, the result will simply have one row representing
914+ \f 1 \fs 18 x
915+ \f 3 \fs 20 ), and each column of
916+ \f 1 \fs 18 y
917+ \f 3 \fs 20 will be represented by one column of the result (or if
918+ \f 1 \fs 18 y
919+ \f 3 \fs 20 is a vector, the result will simply have one column representing
920+ \f 1 \fs 18 y
921+ \f 3 \fs 20 ). Each element in the result matrix will therefore represent the correlation between a column of matrix
922+ \f 1 \fs 18 x
923+ \f 3 \fs 20 (or the entirety of vector
924+ \f 1 \fs 18 x
925+ \f 3 \fs 20 ) and a column of matrix
926+ \f 1 \fs 18 y
927+ \f 3 \fs 20 (or the entirety of vector y). Calling
928+ \f 1 \fs 18 cor(x, x)
929+ \f 3 \fs 20 , or equivalently
930+ \f 1 \fs 18 cor(x)
931+ \f 3 \fs 20 , thus produces a symmetric correlation matrix among the columns of
932+ \f 1 \fs 18 x
933+ \f 3 \fs 20 .\
888934\pard\pardeftab 720 \li 720 \fi - 446 \ri 720 \sb 180 \sa 60 \partightenfactor 0
889935
890- \f 1 \fs 18 \cf 2 (float$)cov(numeric\'a0 x, numeric\'a0 y)\
936+ \f 1 \fs 18 \cf 2 \expnd 0 \expndtw 0 \kerning 0
937+ (float)cov(numeric\'a0 x, \kerning 1 \expnd 0 \expndtw 0 [Nif\'a0 y\'a0 =\'a0 NULL]\expnd 0 \expndtw 0 \kerning 0
938+ )\
891939\pard\pardeftab 720 \li 547 \ri 720 \sb 60 \sa 60 \partightenfactor 0
892940
893- \f 3 \fs 20 \cf 2 Returns the
941+ \f 3 \fs 20 \cf 2 \kerning 1 \expnd 0 \expndtw 0 Returns the
894942\f 0 \b corrected sample covariance
895- \f 3 \b 0 between
943+ \f 3 \b 0 between vectors
896944\f 1 \fs 18 x
897945\f 3 \fs 20 and
898946\f 1 \fs 18 y
899- \f 3 \fs 20 . The sizes of
947+ \f 3 \fs 20 . If
948+ \f 1 \fs 18 y
949+ \f 3 \fs 20 is
950+ \f 1 \fs 18 NULL
951+ \f 3 \fs 20 , it is considered to have the same value as
952+ \f 1 \fs 18 x
953+ \f 3 \fs 20 ; for vector
954+ \f 1 \fs 18 x
955+ \f 3 \fs 20 this is equivalent to calling
956+ \f 1 \fs 18 var(x)
957+ \f 3 \fs 20 , but it is more useful for calculating a variance-covariance matrix using the columns of
958+ \f 1 \fs 18 x
959+ \f 3 \fs 20 (see below). The sizes of
900960\f 1 \fs 18 x
901961\f 3 \fs 20 and
902962\f 1 \fs 18 y
908968\f 1 \fs 18 0
909969\f 3 \fs 20 or
910970\f 1 \fs 18 1
911- \f 3 \fs 20 , the return value will be
971+ \f 3 \fs 20 , an error will be raised (a change in behavior from Eidos 4.0; it used to return
912972\f 1 \fs 18 NULL
913- \f 3 \fs 20 . At present it is illegal to call
973+ \f 3 \fs 20 ). The return value will be a singleton
974+ \f 1 \fs 18 float
975+ \f 3 \fs 20 .\
976+ It is also legal to call
914977\f 1 \fs 18 cov()
915- \f 3 \fs 20 with a matrix or array argument, because the desired behavior in that case has not yet been implemented.\
978+ \f 3 \fs 20 with matrix
979+ \f 1 \fs 18 x
980+ \f 3 \fs 20 and/or
981+ \f 1 \fs 18 y
982+ \f 3 \fs 20 . In this case the return value will be a covariance matrix between x and y. Each column of
983+ \f 1 \fs 18 x
984+ \f 3 \fs 20 will be represented by one row of the result (or if
985+ \f 1 \fs 18 x
986+ \f 3 \fs 20 is a vector, the result will simply have one row representing
987+ \f 1 \fs 18 x
988+ \f 3 \fs 20 ), and each column of
989+ \f 1 \fs 18 y
990+ \f 3 \fs 20 will be represented by one column of the result (or if
991+ \f 1 \fs 18 y
992+ \f 3 \fs 20 is a vector, the result will simply have one column representing
993+ \f 1 \fs 18 y
994+ \f 3 \fs 20 ). Each element in the result matrix will therefore represent the covariance between a column of matrix
995+ \f 1 \fs 18 x
996+ \f 3 \fs 20 (or the entirety of vector
997+ \f 1 \fs 18 x
998+ \f 3 \fs 20 ) and a column of matrix
999+ \f 1 \fs 18 y
1000+ \f 3 \fs 20 (or the entirety of vector y). Calling
1001+ \f 1 \fs 18 cov(x, x)
1002+ \f 3 \fs 20 , or equivalently
1003+ \f 1 \fs 18 cov(x)
1004+ \f 3 \fs 20 , thus produces a symmetric variance-covariance matrix among the columns of
1005+ \f 1 \fs 18 x
1006+ \f 3 \fs 20 .\
9161007\pard\pardeftab 720 \li 720 \fi - 446 \ri 720 \sb 180 \sa 60 \partightenfactor 0
9171008
918- \f 1 \fs 18 \cf 2 \kerning 1 \expnd 0 \expndtw 0 (float)filter(numeric\'a0 x, float\'a0 filter, [lif$\'a0 outside\'a0 =\'a0 F])\
1009+ \f 1 \fs 18 \cf 2 (float)filter(numeric\'a0 x, float\'a0 filter, [lif$\'a0 outside\'a0 =\'a0 F])\
9191010\pard\pardeftab 720 \li 547 \ri 720 \sb 60 \sa 60 \partightenfactor 0
9201011
9211012\f 3 \fs 20 \cf 2 Returns the result of convolving
@@ -1338,23 +1429,25 @@ The result for all of these
13381429\f 1 \fs 18 \cf 0 (float$)sd(numeric
13391430\f 2 \'a0
13401431\f 1 x)\
1341- \pard\pardeftab 397 \li 547 \ri 720 \sb 60 \sa 60 \partightenfactor 0
1432+ \pard\pardeftab 543 \li 547 \ri 720 \sb 60 \sa 60 \partightenfactor 0
13421433
1343- \f 3 \fs 20 \cf 0 Returns the
1434+ \f 3 \fs 20 \cf 2 Returns the
13441435\f 0 \b corrected sample standard deviation
13451436\f 3 \b 0 of
13461437\f 1 \fs 18 x
1347- \f 2 \fs 20 .
1348- \f 3 If
1438+ \f 3 \fs 20 . If
13491439\f 1 \fs 18 x
13501440\f 3 \fs 20 has a size of
13511441\f 1 \fs 18 0
13521442\f 3 \fs 20 or
13531443\f 1 \fs 18 1
1354- \f 2 \fs 20 ,
1355- \f 3 the return value will be
1444+ \f 3 \fs 20 , an error will be raised (a change in behavior from Eidos 4.0; it used to return
13561445\f 1 \fs 18 NULL
1357- \f 2 \fs 20 .\
1446+ \f 3 \fs 20 ). Matrix/array dimensions are ignored by
1447+ \f 1 \fs 18 sd()
1448+ \f 3 \fs 20 ; it simply uses all of the elements of
1449+ \f 1 \fs 18 x
1450+ \f 3 \fs 20 for its calculation.\
13581451\pard\pardeftab 543 \li 720 \fi - 446 \ri 720 \sb 180 \sa 60 \partightenfactor 0
13591452
13601453\f 1 \fs 18 \cf 0 (float$)ttest(float
@@ -1412,7 +1505,7 @@ The result for all of these
14121505(float$)var(numeric\'a0 x)\
14131506\pard\pardeftab 543 \li 547 \ri 720 \sb 60 \sa 60 \partightenfactor 0
14141507
1415- \f 3 \fs 20 \cf 2 Returns the
1508+ \f 3 \fs 20 \cf 2 \kerning 1 \expnd 0 \expndtw 0 Returns the
14161509\f 0 \b corrected sample variance
14171510\f 3 \b 0 of
14181511\f 1 \fs 18 x
@@ -1422,16 +1515,18 @@ The result for all of these
14221515\f 1 \fs 18 0
14231516\f 3 \fs 20 or
14241517\f 1 \fs 18 1
1425- \f 3 \fs 20 , the return value will be
1518+ \f 3 \fs 20 , an error will be raised (a change in behavior from Eidos 4.0; it used to return
14261519\f 1 \fs 18 NULL
1427- \f 3 \fs 20 . This is the square of the standard deviation calculated by
1520+ \f 3 \fs 20 ) . This is the square of the standard deviation calculated by
14281521\f 1 \fs 18 sd()
1429- \f 3 \fs 20 . At present it is illegal to call
1522+ \f 3 \fs 20 . It is illegal to call
14301523\f 1 \fs 18 var()
1431- \f 3 \fs 20 with a matrix or array argument, because the desired behavior in that case has not yet been implemented.\
1524+ \f 3 \fs 20 with a matrix or array argument; use
1525+ \f 1 \fs 18 cov()
1526+ \f 3 \fs 20 to calculate a variance-covariance matrix.\
14321527\pard\pardeftab 397 \ri 720 \sb 360 \sa 60 \partightenfactor 0
14331528
1434- \f 0 \b \fs 22 \cf 0 \kerning 1 \expnd 0 \expndtw 0 3.3. Distribution drawing and density functions\
1529+ \f 0 \b \fs 22 \cf 0 3.3. Distribution drawing and density functions\
14351530\pard\pardeftab 397 \li 720 \fi - 446 \ri 720 \sb 180 \sa 60 \partightenfactor 0
14361531
14371532\f 1 \b 0 \fs 18 \cf 2 \expnd 0 \expndtw 0 \kerning 0
@@ -5406,6 +5501,7 @@ See
54065501\f 3 \fs 20 will be returned; if not,
54075502\f 1 \fs 18 F
54085503\f 3 \fs 20 will be returned (but at present, an error will result instead).\cf 0 \
5504+ \pard\pardeftab 543 \li 547 \ri 720 \sb 60 \sa 60 \partightenfactor 0
54095505\cf 2 If
54105506\f 1 \fs 18 compress
54115507\f 3 \fs 20 is
0 commit comments