allNQQNotNA: Returns input dataframe of short survey questions with...

Description Usage Arguments Details Value Note

Description

Used by 'getDididXWave' to create a wide-format dataframe indicating survey completion for each of a selected set of waves, by SID.

Usage

1

Arguments

pDF

The dataframe produced by 'getNQTVCs'.

Details

Used by 'getDidItXWave' to set values for the returned dataframe.

Value

The long-form dataframe of time varying covariates (returned by getNQTVCs) with a column 'DidIt' added, which has the value one if any of the questions addressed below (lifetime substance use questions) were answered, 0 otherwise.

Note

Internal function, NOT EXPORTED


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