getSIDSet: Returns a vector of SIDs that are consistent with some...

Description Usage Arguments Details Value Examples

Description

This function is a bit slow, probably because it uses calls to 'getEligXWave' and 'getDiditXWave'...but it still runs in a couple of minutes even for fairly large Analysis Sets, and this design has the advantage of not requiring the output from these functions to be created ahead of time and passed in.

Usage

1
getSIDSet(pWavVec, pSchVec, pElig = 1, pDid = 1)

Arguments

pWavVec

An ordered numeric vector of wave SIDs to be included in the analysis. Waves 2, 6, and 10 are summer waves; no Short Survey or Long Survey data were collected. Hence these waves should not ever be specified.

pSchVec

A numeric vectorof School IDs to be included in the analysis.

pElig

the minimum number of eligible waves for SID to be included

pDid

the minimum number of completed waves for SID to be included

Details

Used by other functions in this package (e.g. getNetworkSet). Could be used stand-alone, e.g. if you want to draw an Analysis Set without having to create a list of networks with 'getNetworkSet'.

Value

An Analysis Set-length numerical vector of SIDs.

Examples

1
2
# Obtains the SID set for a network analysis:
SIDVec <- getSIDSet(c(1, 3, 4), c(3, 4, 5, 6, 30))

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