geog.diffuse {polimetrics} | R Documentation |
Calculating Geographical Diffusion
Description
Calculating Geographical Diffusion
Usage
geog.diffuse(df, id, neighbors, time, status, end = FALSE, keep = FALSE)
Arguments
df |
data frame to read in. Data frame should include a variable that is a character list of each observation's neighbors. |
id |
the grouping variable, usually states or counties |
neighbors |
a variable that is a |
time |
the time variable, at which observations are measured. |
status |
binary, user-defined measure of the status of policy or event in a state in a given year. |
end |
logical (default set to |
keep |
logical (default set to |
Value
This function updates the data frame with a new variable capturing the geographical diffusion score.
References
Berry, William D., Ringquist, Evan J., Fording, Richard C.,
and Hanson, Russell L.
(1998) 'Measuring Citizen and Government Ideology
in the American States, 1960-93.'
American Journal of Political Science 42:327-348.
doi: 10.2307/2991759.
Soule, Sarah A., and King, Brayden G.
(2006) 'The Stages of the Policy Process
and the Equal Rights Amendment, 1972-1982.'
American Journal of Sociology 111:1871-1909.
doi: 10.1086/499908.
This function calculates the percent (or proportion) of geographically contiguous neighbors that have engaged in some event (e.g. policy adoption) in a given year. This function can be applied to any unit of analysis and time level for any type of event.
Examples
data <- Ideology_ERA
geog.diffuse(data, state, neighbors, year, era_status)