s0Make: Returns a data.table of structural 0 edges between 2 schools

Description Usage Arguments Details Value Note

Description

This is a 'helper' function which, along with s0Assemble, adds rows of structural zeros for individuals from different middle schools who, however, will be going to the same high school the next year...and are thus considered part of the same network, for analysis purposes.

Usage

1
s0Make(pVec1, pVec2)

Arguments

pVec1

A vector of the RowIDs (note: not SIDs!) in middle school 1.

pVec2

A vector of the RowIDs in middle school 2.

Details

To make connections between two wave 1 middle schools impossible, all you need to do is create an edge with value '10 (structural zero, in RSiena terminology) between each pair of individuals in the two schools. This function accomplishes that in a simple but efficient way. The function 's0Assemble' takes all the data.table objects created here and assembles them into one big table to return to the calling function.

Value

A data.table in edgelist format; cols are RowID (chooser), RowID (chosen), bff (value of the relationship, an integer >= 0), and WID (wave ID #).

Note

This function should not normally be used stand-alone. To see how it is used in context, consult the source code for 'getNetworkSet'. NOT EXPORTED


johninpdx/RSTools documentation built on May 19, 2019, 5:15 p.m.