lq: Calculate location quotients

Description Usage Arguments Examples

View source: R/mMisc.R

Description

Converts a data frame of counts to a data frame of location quotients.

Usage

1
lq(d)

Arguments

d

a data frame of arbitrary size

The location quotient is a proportion of proportions. The typical use case is comparing local proportions to some standard (e.g. national) proportion as a quick way of understanding how exaggerated local differences are.

If the local proportion of households with children is 0.15 and the national proportion is 0.10 then the LQ is 0.15 / 0.10 = 1.5. Which is to say that the local proportion is half again larger than the national proportion.

Will use the row/proportions as the local proportions and the column totals as the reference.

Examples

1
lq_frame = lq(data)

townleym/mMisc documentation built on May 6, 2019, 10:52 a.m.