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)

