SOURCEBOOK

R | Data Analysis

Standardized Scores

Prior to the steps below, enter the data as appropriate for the analyses (described elsewhere).

Computing Transformations

Use a formula to calculate a new vector with the transformed scores.

trOutcome <- Outcome+1

Create and display the data set in a frame.

data.frame(Outcome,trOutcome)

Computing Standardized Scores

Create a new variable vector containing the standardized scores.

zOutcome <- scale(Outcome)

Create and display the data set in a frame.

data.frame(Outcome,trOutcome,zOutcome)