home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / UNIX / Educational / R-0.49-MI / R-0.49-I / help / splines / predict.ns < prev    next >
Encoding:
Text File  |  1997-09-13  |  861 b   |  30 lines

  1.     
  2.     _E_v_a_l_u_a_t_e _a _p_r_e_d_e_f_i_n_e_d _s_p_l_i_n_e _b_a_s_i_s _a_t _n_e_w _v_a_l_u_e_s _o_f _x
  3.     
  4.          predict.bs(basis, newx)
  5.          predict.ns(basis, newx)
  6.     
  7.     _A_r_g_u_m_e_n_t_s:
  8.     
  9.             basis:
  10.          the result of a call to bs() or ns(), in particular,
  11.          having attributes describing knots, degree etc.
  12.     
  13.              newx:
  14.          the x values at which evaluations are required.
  15.     
  16.          Value:
  17.     
  18.          an object just like basis, except evaluated at the new
  19.          values of x These are methods for the function
  20.          predict() for objects inheriting from classes bs or ns.
  21.          See predict for the general behavior of this function.
  22.     
  23.          bs, ns, poly, lo, s
  24.     
  25.     _E_x_a_m_p_l_e_s:
  26.     
  27.          basis <- ns(x, knots=c(3,6), B=c(0,5)) #generate a basis
  28.          basis.eval <- predict(basis, newx)
  29.     
  30.