| gwalpha | R Documentation |
This function computes geographically weighted cronbach's alpha (GWalpha) for responses from georeferenced multi-item survey scales.
gwalpha(
x,
data,
kernel = "bisquare",
adaptive = TRUE,
bw,
ci = FALSE,
p = 0.95,
nsims = 1000
)
x |
a character vector or numeric vector with the column names or indices
of items in |
data |
a SpatialPointsDataFrame as defined in package |
kernel |
type of kernel function used to weight responses. Available
options: |
adaptive |
logical; if |
bw |
bandwidth for weighting function, can be specified or obtained using
|
ci |
logical; if |
p |
the percentile for the upper confidence interval if |
nsims |
number of bootstrap iterations if |
a data frame with:
gwalpha |
local estimates of reliability |
gwalpha_u |
upper confidence interval if |
coords |
coordinates matrix for each responses |
Zhang, S., and Z. Li. 2025. “ Geographically Weighted Cronbach's Alpha (GWalpha): An Exploratory Local Measure of Reliability for Scale Construction.” Geographical Analysis 57, no. 4: 758–772.
bw_gwalpha()
data(bes2011)
alpha100 <- gwalpha(
x = c("willHelp", "closeKnit", "trust", "solComProb", "relGroups"),
data = bes2011,
bw = 100
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.