search for: sn2listw

Displaying 2 results from an estimated 2 matches for "sn2listw".

Did you mean: nb2listw
2008 Apr 18
1
spdep question - Moran's I
Dear all, I would like to calculate a Moran's I statistic using the moran function in the spdep package. The problem I'm having deals with how to create the listw object. My data stems from the area of social network analysis. I have list of poeple and for each pair of them I have a measure of their relationship strength. So my dataset looks like: Jim; Bob; 0.5 This measure of
2012 Jul 24
1
unable to run spatial lag and error models on large data
...our", class(test1.csv)) of <- ordered(test1.csv$OID) attr(test1.csv, "region.id") <- levels(of) test1.csv$OID <- as.integer(of) test1.csv$NID <- as.integer(ordered(test1.csv$NID)) attr(test1.csv, "n") <- length(unique(test1.csv$OID)) lw_test1.csv <- sn2listw(test1.csv) lw_test1.csv$style <- "W" lw_test1.csv Characteristics of weights list object: Neighbour list object: Number of regions: 10740 Number of nonzero links: 42960 Percentage nonzero weights: 0.03724395 Average number of links: 4 Non-symmetric neighbours list Weights s...