Evaluates the effect on the index of the named
places under three
an object of class
a character vector containing the names of the places in any of the higher-level geographies for which the evaluation will be made
The three different scenarios considered are:
if the effects (the estimated residuals from the multilevel
model) are set to zero for the named higher-level
if the shares of the two population groups are equal everywhere
except within the named
if all but the neighbourhoods within the named
are omitted from the data and the index then recalculated
using only those that remain.
The evaluation also includes:
the impact of the chosen places upon the overall ID, where a value
over 100 indicates a group of neighbourhoods with a disproportionately
high (in the same way that
impacts calculates it)
an R-squared value. This is the proportion of the total variation in (Y - X) that is due to the chosen places, where (Y - X) are the differences between the share of population group Y and the share of population group X that are observed in each neighbourhood.
vignette("MLID") for further details
an object, primarily a list containing the evaluated values
Harris R (2017) Fitting a multilevel index of segregation in R: using the MLID package http://rpubs.com/profrichharris/MLID
1 2 3 4 5 6 7 8 9 10 11 12
## Not run: data(aggdata) index <- id(aggdata, vars = c("Bangladeshi", "WhiteBrit"), levels = c("MSOA","LAD","RGN")) ci <- confint(index) catplot(ci) # Note Tower Hamlets and Newham. Obtain the predictions for them: effect(index, "Tower Hamlets") effect(index, "Newham") effect(index, c("Tower Hamlets","Newham")) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.