paley                 package:survey                 R Documentation

_P_a_l_e_y-_t_y_p_e _H_a_d_a_m_a_r_d _m_a_t_r_i_c_e_s

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

     Computes a Hadamard matrix of dimension p+1, where p is a prime,
     and p+1 is a multiple of 4, using the Paley construction. Works
     for 'n' up to 1367.

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

     paley(n, nmax = 2 * n)

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

       n: Minimum size for matrix

    nmax: Maximum size for matrix

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

     A matrix of zeros and ones, or 'NULL' if no matrix smaller than
     'nmax' can be found.

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

     'hadamard'

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

     p<-paley(11)

     p1<-2*p-1
     ## HH^T is diagonal for any Hadamard matrix
     p1%*%t(p1)

