getFixedCovs: Returns a dataframe of fixed covariates for a set of input...

Description Usage Arguments Details Value Examples

Description

This is generally used to pull this data from the database, and subsequently subset it for a particular Analysis Set.

Usage

1
getFixedCovs(pSchVec)

Arguments

pSchVec

A vector of (integer) School IDs; any existing fixed covariate rows in the database where the participant is shown as currently in one of these schools will be included.

Details

If a participant switches schools (which happens regularly), this function will only pull his/her data if his/her *current* school is in the input vector.

Value

A dataframe that has the same format as the database table 'PInf.dbo.SMaster'. Column names fairly accurately describe column contents, but one should consult the qq codebook for precise definition.

Examples

1
2
# Gets table of fixed covariats for all the schools in 1 district
fc <- getFixedCovs(c(3,4,5,6,30)

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