cSplineDes               package:mgcv               R Documentation

_E_v_a_l_u_a_t_e _c_y_c_l_i_c _B _s_p_l_i_n_e _b_a_s_i_s

_D_e_s_c_r_i_p_t_i_o_n:

     Uses 'splineDesign' to set up the model matrix for a cyclic
     B-spline basis.

_U_s_a_g_e:

     cSplineDes(x, knots, ord = 4)

_A_r_g_u_m_e_n_t_s:

       x: covariate values for smooth.

   knots: The knot locations: the range of these must include all the
          data.

     ord: order of the basis. 4 is a cubic spline basis. Must be >1.

_D_e_t_a_i_l_s:

     The routine is a wrapper that sets up a B-spline basis, where the
     basis functions wrap at the first and  last knot locations.

_V_a_l_u_e:

     A matrix with 'length(x)' rows and 'length(knots)-1' columns.

_A_u_t_h_o_r(_s):

     Simon N. Wood simon.wood@r-project.org

_S_e_e _A_l_s_o:

     'cyclic.p.spline'

_E_x_a_m_p_l_e_s:

      x <- 0:100/100;k<- 0:5/5
      X <- cSplineDes(x,k)
      plot(x,X[,1],type="l"); for (i in 2:5) lines(x,X[,i],col=i)

