monoSpline               package:lumi               R Documentation

_F_i_t_t_i_n_g _a _c_u_r_v_e _w_i_t_h _m_o_n_o_t_o_n_i_c _s_p_l_i_n_e

_D_e_s_c_r_i_p_t_i_o_n:

     Fitting a curve with monotonic spline

_U_s_a_g_e:

     monoSpline(x, y, newX=NULL, nKnots = 6, ifPlot = FALSE)

_A_r_g_u_m_e_n_t_s:

       x: a vector represents x values 

       y: a vector represents y values 

    newX: the new values to be transformed. If not provided, "x" will
          be used. 

  nKnots: parameter used by function smoothCon in package mgcv 

  ifPlot: determine whether to plot intermediate results 

_D_e_t_a_i_l_s:

     Function internally called by monoSmu

_V_a_l_u_e:

     return the transformed "newX" based on the smoothed curve

_A_u_t_h_o_r(_s):

     Simon Lin, Pan Du

_S_e_e _A_l_s_o:

     'monoSmu'

