IAcontrasts              package:BSagri              R Documentation

_I_n_t_e_r_a_c_t_i_o_n _c_o_n_t_r_a_s_t_s _f_o_r _2-_f_a_c_t_o_r_i_a_l _d_e_s_i_g_n_s

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

     Builds a family of intercation contrasts for complete
     two-factorial designs.

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

     IAcontrasts(type, k)

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

    type: a vector of two character strings, specifying the contrast
          'type', currently, '"Tukey"', '"Dunnett"', '"Sequence"' or
          '"Identity"' are accepted 

       k: a vector of two integers, specifying the number of groups in
          each factor of the two-factorial design 

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

     Creates contrast matrices using 'contrMat' from package
     'multcomp', creates the kronecker product of both and creates
     suitable columnnames.

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

     A matrix with k[1]*k[2] columns and a number of rows depending on
     type.

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

     for 2-way interaction contrasts directly based on 2 contrasts
     matrices, see 'IAcontrastsCMAT'; two possibilities to specify
     appropriate rownames are implemented in function 'c2compnames'

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

     IAC<-IAcontrasts(type=c("Tukey", "Tukey"), k=c(3,4))

     IAC

     IAC2<-c2compnames(IAC, ntype="sequ")
     IAC2

