bounds: Deterministic bounds for units satisfying row thresholds

View source: R/bounds.R

boundsR Documentation

Deterministic bounds for units satisfying row thresholds

Description

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

Usage

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

Arguments

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

Value

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.

Author(s)

Ryan T. Moore <rtm@american.edu>

References

Otis Dudley Duncan and Beverley Davis. 1953. “An Alternative to Ecological Correlation.” American Sociological Review 18: 665-666.

See Also

plot.bounds


eiPack documentation built on March 7, 2023, 7:04 p.m.

Related to bounds in eiPack...