View source: R/add_nontravelers.R
add_nontravelers | R Documentation |
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.
add_nontravelers(dumdat, prraw, notr_pids)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.