Introduction: Manipulating, Subsetting, Concatenating, and Merging Data

Very often, researchers obtain a dataset in which the data are not yet in a form appropriate for analysis. For example, imagine that you are conducting research on job satisfaction. Perhaps you want to compute the correlation between participant age and a single index of job satisfaction. You administer a 10-item questionnaire to 200 employees to assess job satisfaction, and you enter their responses to the 10 individual questionnaire items.

You now need to add together each participant’s response to those 10 items to arrive at a single composite score that reflects that participant’s overall level of satisfaction. This computation is easy to perform by including a number ...

Get A Step-by-Step Approach to Using SAS® for Univariate & Multivariate Statistics, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.