approxExtrap              package:Hmisc              R Documentation

_L_i_n_e_a_r _E_x_t_r_a_p_o_l_a_t_i_o_n

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

     Works in conjunction with the 'approx' function to do linear
     extrapolation.  'approx' in R does not support extrapolation at
     all, and it is buggy in S-Plus 6.

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

     approxExtrap(x, y, xout, method = "linear", n = 50, rule = 2, f = 0, ties = "ordered", na.rm = FALSE)

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

       x: 

       y: 

    xout: 

  method: 

       n: 

    rule: 

       f: see 'approx'

    ties: applies only to R.  See 'approx'

   na.rm: set to 'TRUE' to remove 'NA's in 'x' and 'y' before
          proceeding

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

     Duplicates in 'x' (and corresponding 'y' elements) are removed
     before using 'approx'.

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

     a vector the same length as 'xout'

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

     Frank Harrell

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

     'approx'

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

     approxExtrap(1:3,1:3,xout=c(0,4))

