rmono                package:monomvn                R Documentation

_R_a_n_d_o_m_l_y _I_m_p_o_s_e _a _M_o_n_o_t_o_n_e _M_i_s_s_i_n_g_n_e_s_s _P_a_t_t_e_r_n

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

     Randomly impose a monotone missingness pattern by replacing the
     ends of each column of the input matrix by a random number of
     'NA's

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

     rmono(x, m = 7, ab = NULL)

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

       x: data 'matrix' 

       m: minimum number of non-'NA' entries in each column 

      ab: a two-vector of alpha ('ab[1]') and beta ('ab[2]') parameters
          to a Beta(alpha, beta) distribution describing the proportion
          of 'NA' entries in each column. The default setting 'ab =
          NULL' yields a uniform distribution 

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

     The returned 'x' always has one (randomly selected) complete
     column, and no column has fewer than 'm' non-missing entries. 
     Otherwise, the proportion of missing entries in each column can be
     uniform, or it can have a beta distribution with parameters alpha
     ('ab[1]') and beta ('ab[2]')

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

     returns a 'matrix' with the same dimensions as the input 'x'

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

     Robert B. Gramacy bobby@statslab.cam.ac.uk

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.statslab.cam.ac.uk/~bobby/monomvn.html>

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

     'randmvn'

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

     out <- randmvn(10, 3)
     rmono(out$x)

