incrementalPlot: Incremental Local Indicators of Dispersion plot

View source: R/incrementalPlot.R

incrementalPlotR Documentation

Incremental Local Indicators of Dispersion plot

Description

Plot the difference in the non-group component of inequality at increasing bandwidth sizes.

Usage

incrementalPlot(inc)

Arguments

inc

The list output of the incrementalLID function This does not work when both bw and def.neigh were permuted.

Value

A ggplot object

Examples


# Generate dummy observations
x <- runif(10, 1, 100)

# Get distance matrix
dists <- dist(x)

# Bandwidth sizes from 3 to 5
bws <- 3:5

inc <- incrementalLID(x, dist = dists, bws = bws, index = 'gini', type = 'local',
                      weighting = 'distance', FUN = function(x) 1/x^2, minval = 1)

# Plot the results
incrementalPlot(inc)

andresgmejiar/lbmech documentation built on Feb. 2, 2025, 12:37 a.m.