Compute z-Score in R (2 Examples) | Normal Standard Scores & Standardized Values | Formula & scale()

preview_player
Показать описание
R code of this video:

x <- c(7, 6, 1, 4, 3, 5, 3, 7, 6, 5) # Create example data
x # Print example date

x_stand1 # Print standardized values

x_stand2a <- scale(x) # Standardize using scale()
x_stand2a # Print standardized values

x_stand2b # Print standardized values

Follow me on Social Media:
Рекомендации по теме
Комментарии
Автор

Thanks for a great explanation! love your accent

SunnyGoga
Автор

Why does the scale function turn vector into a matrix transformation? Does that matter if its not vector?

mohjaiswal