IAcontrastsCMAT            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 _a _t_w_o-_f_a_c_t_o_r_i_a_l _d_e_s_i_g_n

_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:

     IAcontrastsCMAT(CMAT1, CMAT2)

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

   CMAT1: a (named) contrast matrix 

   CMAT2: a (named) contrast matrix 

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

     Builds the kronecker product of 'CMAT1' and 'CMAT2' and creates
     suitable columnnames. Note that 'CMAt1' and 'CMAT2' are not
     checked, and hence its up to the user to define them suitably.

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

     A matrix with k[1]*k[2] columns.

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

     for interaction contrasts based on contrast definition and the
     number of levels of the factors in atwo-way layout, see
     'IAcontrasts'; two possibilities to specify appropriate rownames
     are implemented in function 'c2compnames'

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

     library(multcomp)

     n1<-c(10,10,10,10)
     names(n1)<-c("A","B","C","D")

     n2<-c(3,3,3)
     names(n2)<-c(1,2,3)

     CMT1<-contrMat(n1, type="Tukey")

     CMT2<-contrMat(n2, type="Tukey")

     IAC<-IAcontrastsCMAT(CMAT1=CMT1, CMAT2=CMT2)

     c2compnames(IAC, ntype="sequ")

     ###

     # In

     n1<-c(10,10,10,10)
     names(n1)<-c("A","B","C","D")

     n2<-c(3,3,3)
     names(n2)<-c(1,2,3)

     CMD1<-contrMat(n1, type="Dunnett")

     CMD2<-contrMat(n2, type="Dunnett")

     IAC<-IAcontrastsCMAT(CMAT1=CMD1, CMAT2=CMD2)

     c2compnames(IAC, ntype="sequ")

