search for: sumnumneigh

Displaying 1 result from an estimated 1 matches for "sumnumneigh".

2008 Sep 16
1
Car.proper C[] matrix
...of area i=2; etc. # To set up this vector, we need to define a variable cumsum, which gives the values of J1, # J2, etc.; we then set up an index matrix pick[,] with N columns corresponding to the # i=1,...,N areas, and with the same number of rows as there are elements in the C[] vector # (i.e. sumNumNeigh). The elements C[ (cumsum[i]+1):cumsum[i+1] ] correspond to # the set of weights Cij associated with area i, and so we set up ith column of the matrix pick[,] # to have a 1 in all the rows k for which cumsum[i] < k <= cumsum[i+1], and 0's elsewhere. # For example, let N=4 and cumsum=c(...