add_nontravelers: Add non-travelers to the travelers data set for Mplus models

View source: R/add_nontravelers.R

add_nontravelersR Documentation

Add non-travelers to the travelers data set for Mplus models

Description

This function takes the people who did not travel and adds them to the travel dataset with 0's for all travel variables that will be used in the Mplus analysis.

Usage

add_nontravelers(dumdat, prraw, notr_pids)

Arguments

dumdat

Travel-level data frame, which will be modified and used

prraw

Person-level data frame, uncleaned, to get the full list of person IDs

notr_pids

List of person ids of people who were not included in travel data.

Value

Returns an object that has all people we want for analysis, whether or not they traveled, with the analysis variables ready in columns for Mplus.


e-mcbride/PSRC.analysis documentation built on April 14, 2022, 5:29 p.m.