simulatelinear             package:DAAG             R Documentation

_S_i_m_u_l_a_t_i_o_n _o_f _L_i_n_e_a_r _M_o_d_e_l_s _f_o_r _A_N_O_V_A _v_s. _R_e_g_r_e_s_s_i_o_n _C_o_m_p_a_r_i_s_o_n

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

     This function simulates a number of bivariate data sets in which
     there are replicates at each level of the predictor. The p-values
     for ANOVA and for the regression slope are  compared.

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

     simulatelinear(sd=2, npoints=5, nrep=4, nsets=200, type="xy", seed=21)

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

      sd: The error standard deviation

 npoints: Number of distinct predictor levels

    nrep: Number of replications at each level

   nsets: Number of simulation runs

    type: Type of data

    seed: Random Number generator seed

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

     The proportion of regression p-values that are less than the ANOVA
     p-values is printed

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

     J.H. Maindonald

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

     simulatelinear()

