

harvtest(lmtest)                             R Documentation

_H_a_r_v_e_y_-_C_o_l_l_i_e_r_-_T_e_s_t

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

     `harvtest' performs the Harvey-Collier-Test for linear-
     ity.

_U_s_a_g_e_:

     raintest(formula, data=list())

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

 formula: a symbolic describtion for the model to be tested

    data: an optional data frame containing the variables in
          the model.  By default the variables are taken
          from the environment which 'harvtest' is called
          from

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

     The Harvey-Collier-Tests examines if the true relation-
     ship is linear versus a convex or concave relationship
     under the alternative. The test statistic under null
     hypothesis follows a t distribution with df degree of
     freedom.

_V_a_l_u_e_:

     A list with class `"htest"' containing the following
     components:

statistic: the value of the test statistic.

 p.value: the p-value of the test.

  method: a character string indicating what type of test
          was performed.

data.name: a character string giving the name(s) of the
          data.

_A_u_t_h_o_r_(_s_)_:

     Torsten Hothorn <hothorn@amadeus.statistik.uni-dort-
     mund.de>

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

     Kraemer, W., Sonnberger, H. (1986): The linear regres-
     sion model under test

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

     `lm'

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

     x <- c(1:30);
     y <- x^2 + rnorm(30,0,2);
     formular <- y ~ x;
     harv <- harvtest(formular);
     qt(0.95, harv$parameter[1]);

