Learn R Programming

weightTAPSPACK (version 0.1)

subsetTAPS: Subset TAPS data

Description

Subset TAPS data by outcome and covariates specified.

Usage

subsetTAPS(outcome, covars = NULL, weight = FALSE, refusedasNA = TRUE)

Arguments

outcome
A character vector of the names of outcome variables of interest
covars
A character vector of the names of the covariate variables of interest
weight
A logical argument specifying whether to use TAPS base weights or not - default is FALSE
refusedasNA
A logical argument specifying whether to consider the response refused as an NA - default and suggested value is TRUE

Value

A dataframe of subsetted TAPS data

See Also

weightTAPSPACK weightTAPS variablesTAPS weightTAPSoutput simpleWeight attritTAPS multipleImp hotdeckImp wavesTAPS