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'

