getKnots                 package:plw                 R Documentation

_S_p_l_i_n_e-_k_n_o_t_s _f_o_r _p_l_w _a_n_d _l_m_w

_D_e_s_c_r_i_p_t_i_o_n:

     Computes a set of nKnots interior knots( if possible) plus 2
     boundary knots so that:

     1) the nOut smallest and highest data points (in x) lies below and
     above the lower and upper boundary knots respectively.

     2) there is at least nIn data points between all knots.

_U_s_a_g_e:

     getKnots(x,nKnots=10,nOut=2000,nIn=4000)

_A_r_g_u_m_e_n_t_s:

       x: Data vector

  nKnots: Number of interior knots

    nOut: Number of data points below and above the lower and upper
          boundary knots respectively.

     nIn: Number of data points between knots.

_D_e_t_a_i_l_s:

     See the definition (R-code) for details.

_V_a_l_u_e:

     A vector of knots.

_A_u_t_h_o_r(_s):

     Magnus Astrand

_S_e_e _A_l_s_o:

     plw, lmw, estimateSigmaMVbeta

