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'

