data.stata: Generate data.frame with data for Stata

Description Usage Arguments Details

Description

Next to the data and missings there is a parameter missing_codes, that allows to turn valid cases into missings.

Usage

1
  data.stata(valid, missing, missing_codes = NULL)

Arguments

valid

Vector of valid data (NA, where missing).

missing

Vector of missing data (NA, where valid).

missing_codes

Vector of additional missing codes.

Details

The vector with the valid data and the one with the missing data must have the same length. This means that vor every case either the valid or the missing or both attributes must be NA.


ddionrails/r2ddi documentation built on May 15, 2019, 1:52 a.m.