isCbalanced             package:crossdes             R Documentation

_C_h_e_c_k_i_n_g _B_l_o_c_k _D_e_s_i_g_n_s _f_o_r _C_a_r_r_y_o_v_e_r _B_a_l_a_n_c_e

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

     The function checks whether a block design is balanced for first
     order carryover effects (residual effects). The user specifies
     whether there is a preperiod. The design is checked and the left
     neighbour incidence matrix is given.

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

     isCbalanced(d, preperiod = FALSE)

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

       d: A matrix with entries 1,...,trt representing the experimental
          design with rows as blocks (subjects).  The columns represent
          periods. 

preperiod: Logical flag. TRUE if there is a preperiod. In this case,
          each subject experiences in the first period  the residual
          effect of the treatment of the last period (i.e. the last
          period preceeds the first period, i.e. the  plots in the last
          period are left neighbours of the plots in the first period).
           FALSE if there are no residual effects in the first period.

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

     The design is said to be carryover balanced (balanced for first
     order carryover effects), if each treatment is preceeded by all
     other treatments equally often and if no treatment is preceeded by
     itself.  If the design is balanced, this is stated.

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

      1 : Logical flag. TRUE if the design is carryover balanced. This
          is not displayed on the screen.

      2 : Left neighbour incidence matrix. The (i,j)-th element is the
          number of times that  treatment i preceeds treatment j.

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

     Oliver Sailer sailer@statistik.uni-dortmund.de

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

     'isGYD'

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

     d1 <- matrix( c(1,2,3,4,1,1,1,1), 4,2)
     d2 <- matrix( c(1:4,2:4,1,4,1:3,3,4,1,2),ncol=4)
     d3 <- matrix( rep(1:3,each=2), ncol=2)
     isCbalanced(d1)
     isCbalanced(d1,TRUE)  
     isCbalanced(d2)
     isCbalanced(d3,TRUE)

