poly                  package:base                  R Documentation

_C_o_m_p_u_t_e _O_r_t_h_o_g_o_n_a_l _P_o_l_y_n_o_m_i_a_l_s

_D_e_s_c_r_i_p_t_i_o_n:

     Returns orthogonal polynomials of degree 1 to `degree' over the
     specified set of points `x'. These are all orthogonal to the
     constant polynomial of degree 0.

_U_s_a_g_e:

     poly(x, degree=1)

_A_r_g_u_m_e_n_t_s:

       x: a numeric vector at which to evaluate the polynomial

  degree: the degree of the polynomial

_V_a_l_u_e:

     A matrix with rows corresponding to points in `x' and columns
     corresponding to the degree, with attributes `"degree"' specifying
     the degrees of the columns and `"coefs"' which contains the
     centring and normalization constants used in constructing the
     orthogonal polynomials.

_N_o_t_e:

     This routine is intended for statistical purposes such as
     `contr.poly': it does not attempt to orthogonalize to machine
     accuracy.

_A_u_t_h_o_r(_s):

     B.D. Ripley

_S_e_e _A_l_s_o:

     `contr.poly'

_E_x_a_m_p_l_e_s:

     poly(1:10, 3)

