home *** CD-ROM | disk | FTP | other *** search
-
- _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
-
- predict.bs(basis, newx)
- predict.ns(basis, newx)
-
- _A_r_g_u_m_e_n_t_s:
-
- basis:
- the result of a call to bs() or ns(), in particular,
- having attributes describing knots, degree etc.
-
- newx:
- the x values at which evaluations are required.
-
- Value:
-
- an object just like basis, except evaluated at the new
- values of x These are methods for the function
- predict() for objects inheriting from classes bs or ns.
- See predict for the general behavior of this function.
-
- bs, ns, poly, lo, s
-
- _E_x_a_m_p_l_e_s:
-
- basis <- ns(x, knots=c(3,6), B=c(0,5)) #generate a basis
- basis.eval <- predict(basis, newx)
-
-