The R Project SVN R

Rev

Rev 27442 | Rev 36218 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27442 Rev 27625
Line 29... Line 29...
29
\value{
29
\value{
30
  For \code{poly} with a single vector argument:\cr
30
  For \code{poly} with a single vector argument:\cr
31
  A matrix with rows corresponding to points in \code{x} and columns
31
  A matrix with rows corresponding to points in \code{x} and columns
32
  corresponding to the degree, with attributes \code{"degree"} specifying
32
  corresponding to the degree, with attributes \code{"degree"} specifying
33
  the degrees of the columns and \code{"coefs"} which contains the
33
  the degrees of the columns and \code{"coefs"} which contains the
34
  centring and normalization constants used in constructing the
34
  centering and normalization constants used in constructing the
35
  orthogonal polynomials.  The matrix is given class
35
  orthogonal polynomials.  The matrix is given class
36
  \code{c("poly", "matrix")} as from \R 1.5.0.
36
  \code{c("poly", "matrix")} as from \R 1.5.0.
37
 
37
 
38
  Other cases of \code{poly} and \code{polym}, and \code{predict.poly}:
38
  Other cases of \code{poly} and \code{polym}, and \code{predict.poly}:
39
  a matrix.
39
  a matrix.
Line 43... Line 43...
43
  \code{\dots}), an unnamed second argument of length 1 will be
43
  \code{\dots}), an unnamed second argument of length 1 will be
44
  interpreted as the degree.
44
  interpreted as the degree.
45
  
45
  
46
  The orthogonal polynomial is summarized by the coefficients, which can
46
  The orthogonal polynomial is summarized by the coefficients, which can
47
  be used to evaluate it via the three-term recursion given in Kennedy
47
  be used to evaluate it via the three-term recursion given in Kennedy
48
  \& Gentle (1980, pp. 343-4), and use in the \dQuote{predict} part of
48
  \& Gentle (1980, pp. 343-4), and used in the \dQuote{predict} part of
49
  the code.
49
  the code.
50
}
50
}
51
\note{
51
\note{
52
  This routine is intended for statistical purposes such as
52
  This routine is intended for statistical purposes such as
53
  \code{contr.poly}: it does not attempt to orthogonalize to
53
  \code{contr.poly}: it does not attempt to orthogonalize to