wfu                   package:fpc                   R Documentation

_W_e_i_g_h_t _f_u_n_c_t_i_o_n (_f_o_r _M_a_h_a_l_a_b_o_b_i_s _d_i_s_t_a_n_c_e_s)

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

     Function of the elements of 'md', which is 1 for arguments smaller
     than 'ca', 0 for arguments larger than 'ca2' and linear (default:
     continuous) in between.

     Thought for use in 'fixmahal'.

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

     wfu(md, ca, ca2, a1 = 1/(ca - ca2), a0 = -a1 * ca2)

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

      md: vector of positive numericals.

      ca: positive numerical.

     ca2: positive numerical.

      a1: numerical. Slope.

      a0: numerical. Intercept.

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

     A vector of numericals between 0 and 1.

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

     Christian Hennig chrish@stats.ucl.ac.uk <URL:
     http://www.homepages.ucl.ac.uk/~ucakche/>

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

     'fixmahal'

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

       md <- seq(0,10,by=0.1)
       wfu(md,ca=5,ca2=8)

