bounds                package:eiPack                R Documentation

_D_e_t_e_r_m_i_n_i_s_t_i_c _b_o_u_n_d_s _f_o_r _u_n_i_t_s _s_a_t_i_s_f_y_i_n_g _r_o_w _t_h_r_e_s_h_o_l_d_s

_D_e_s_c_r_i_p_t_i_o_n:

     Calculates the deterministic bounds on the proportion of row
     members within a specified column.

_U_s_a_g_e:

     bounds(formula, data, rows, column, excluded = NULL, 
         threshold = 0.9, total = NULL)

_A_r_g_u_m_e_n_t_s:

 formula: a formula of the form 'cbind(col1, col2, ...) ~ cbind(row1,
          row2, ...)'.  Column and row marginals must have the same
          total for each ecological unit.

    data: a data frame containing the variables specified in 'formula'
          and (optionally) 'total'

    rows: a character vector specifying the rows of interest

  column: a character string specifying the column marginal of interest

excluded: an optional character string (or vector of character strings)
          specifying the columns to be excluded from the bounds
          calculation.  For example, if the quantity of interest is
          Democratic share of the two-party vote, non-voters would be
          excluded.

threshold: the minimum proportion of the unit that row members must
          comprise for the bounds to be calculated for the unit.  If
          'threshold = 0', bounds will be calculated for all units.

   total: if row and/or column marginals are given as proportions,
          'total' identifies the name of the variable in 'data'
          containing the total number of individuals in each unit

_V_a_l_u_e:

     A list with elements  

  bounds: a list of deterministic bounds for all units in which row
          proportions meet the threshold

intersection: if the intersection of the deterministic bounding
          intervals is non-empty, the intersection is returned. 
          Otherwise, 'NA' is returned.

_A_u_t_h_o_r(_s):

     Ryan T. Moore <rtm@wustl.edu>

_R_e_f_e_r_e_n_c_e_s:

     Otis Dudley Duncan and Beverley Davis.  1953.  ``An Alternative to
     Ecological Correlation.'' _American Sociological Review_ 18:
     665-666.

_S_e_e _A_l_s_o:

     'plot.bounds'

