

   CCoorrrreellaattiioonn aanndd CCoovvaarriiaannccee MMaattrriicceess

        cor(x, y=x, use="all.obs")
        cov(x, y=x, use="all.obs")

   AArrgguummeennttss::

          x: a matrix or data frame.

          y: a matrix or data frame.

        use: a character string giving the method for handling
             missing observations. This must be one of the
             stringss `"all.obs"', `"complete.obs"' or `"pair-
             wise.complete.obs"' (abbreviations are accept-
             able).

   VVaalluuee::

        The correlation matrix or covariance matrix of the
        columns of `x' and the columns of `y'.

        If `use' has the value `"all.obs"', then the presence
        of missing observations will cause the computation to
        fail.  If `use' has the value `"complete.obs"' then
        missing values are handled by casewise deletion.
        Finally, if `use' has the value `"pairwise.com-
        plete.obs"' then the correlation between each pair of
        variables is computed using all complete pairs of
        observations on those variables.  This can result in
        correlation matrices which are not positive semidefi-
        nite.

