data.frame) to represent neigbours.CreateSpatialNeighbours(linksPairsDoubleEntered)
CreateSpatialNeighbours79Gen2()spatial.neighbours object to work with functions in the Subject1Tag is renamed from.
Subject2Tag is renamed to.
R is renamed weight.
The attribute region.id specifies each unique SubjectTag.
The attribue n specifies the number of unique subjects.Links79Pair and Links79PairExpanded, which has one row per unique pair of subjects, irrespective of order.
CreateSpatialNeighbours79Gen2 automatically creates dataset of NLSY79 Gen2 subjects (i.e., the children of the mothers in the initial NLSY79 sample.
CreateSpatialNeighbours accepts any paired relationships in a data.frame, as long as it contains the columns Subject1Tag, Subject2Tag, and R. See Links79Pair for more details.Links79Pair
listw2sn, sn2listw, df2sn, write.sn2gwt, write.sn2dat are some of the functions in the spatial.neighbours object.