bounds | R Documentation |
Calculates the deterministic bounds on the proportion of row members within a specified column.
bounds(formula, data, rows, column, excluded = NULL, threshold = 0.9, total = NULL)
formula |
a formula of the form |
data |
a data frame containing the variables specified in
|
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
|
total |
if row and/or column marginals are given as proportions,
|
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,
|
Ryan T. Moore <rtm@american.edu>
Otis Dudley Duncan and Beverley Davis. 1953. “An Alternative to Ecological Correlation.” American Sociological Review 18: 665-666.
plot.bounds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.