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)