Creating a Composite Variable in R | Using the rowMeans Function
HTML-код
- Опубликовано: 9 янв 2021
- This tutorial demonstrates how to create a composite variable based on the average scores for a set of variables. Specifically, I demonstrate how to use the rowMeans function to create a composite variable. When creating a composite variable for a multi-item measure/scale, we sometimes refer to the composite variable as an overall scale score variable, as it is intended to indicate the overall level of the concept that multi-item measure/scale was designed to assess.
Other videos from my "R for Beginners" playlist can be found here: • R for Beginners . The videos in this playlist focus on simulated human resources (HR) data.
The data file(s) referenced in this R tutorial (and other R tutorials on this playlist) can be downloaded as a compressed (zipped) folder by visiting the following link: github.com/dav.... Click "Clone or Download" followed by "Download ZIP".