warpsmth                 package:fda                 R Documentation

_A _S_m_o_o_t_h _M_o_n_o_t_o_n_e _W_a_r_p_i_n_g _F_u_n_c_t_i_o_n

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

     This function does nearly the same thing that function
     smooth.monotone does, but in this case the constants b0 and b1 are
     determined so that the initial value of the warping function is
     the same as the initial argument value, and the final warping
     function value is the same as the final argument values. This
     function is mainly used in function landmarkreg to ensure that the
     warping function is monotone.

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

     warpsmth(x, y, wt=rep(1, nobs), Wfd, Lfd=1, lambda=0, conv=0.0001, iterlim=20, active=rep(TRUE, nbasis), dbglev=0)

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

      x : A vector of argument values associated with the data. 

      y : A vector of observations to be smoothed. 

     wt : A vector of positive weights for the observations. The
          default is all weights one. 

    Wfd : A functional data object that determines the final monotone
          smooth. It must be univariate and define a single functional
          observation. 

    Lfd : Either a nonnegative integer or a linear differential
          operator object that defines a rougness penalty to be applied
          to functional data object Wfdobj. If present, the derivative
          or the value of applying the operator is evaluated rather
          than the functions themselves. 

 lambda : A nonnegative smoothing parameter that controls the degree of
          roughness in Wfdobj, and consequently in the monotone
          smoothing function. 

   conv : A criterion for convergence of the iterations. 

iterlim : A limit on the number of iterations. 

 active : A logical vector of length equal to the number of
          coefficients defining Wfdobj. If an entry is T, the
          corresponding coefficient is estimated, and if F, it is held
          at the value defining the argument Wfdobj. Normally the first
          coefficient is set to 0 and not estimated, since it is
          assumed that W(0) = 0. 

 dbglev : Either 0, 1, or 2. This controls the amount information
          printed out on each iteration, with 0 implying no output, 1
          intermediate output level, and 2 full output. 

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

     See the help file for smooth.monotone.

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

     See the help file for smooth.monotone.

_N_o_t_e:

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

_R_e_f_e_r_e_n_c_e_s:

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

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

