derivative             package:quantchem             R Documentation

_D_e_r_i_v_a_t_i_v_e _o_f _f_i_t_t_e_d _p_o_l_y_n_o_m_i_a_l

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

     Calculate derivative of polynomial for given x.

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

     derivative(obj, x)

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

     obj: an object of class 'lm', fitted in 'y ~ x + I(x^2) + I(x^3) +
          ...' way.

       x: a vector of x values 

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

     This function is called via the other high level functions, but it
     can be also called directly.

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

     A vector of calculated derivatives.

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

     Lukasz Komsta

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

     'lm'

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

     x = 1:10
     y = jitter(x+x^2)
     fit = lm(y~x+I(x^2))
     derivative(fit,1:10)

