Hi. I am having a survey dataset with hundreds of variables. I have given a sample dataset here. I want to find out the outlier values. I want to get z-score for each variable. How can I get that?
library(tidyverse)
data<-tibble::tribble(
~student_name, ~id, ~l1c1, ~l1c2, ~l1c3, ~total,
"a", "S001", 1L, 0L, 1L, 2L,
"b", "S002", 1L, 0L, 2L, 3L,
"c", "S003", 1L, 2L, 1L, 4L,
"d", "S004", 0L, 1L, 1L, 2L,
"e", "S005", 0L, 1L, 0L, 1L,
"f", "S006", 1L, 1L, 2L, 4L,
"g", "S007", 1L, 0L, 0L, 1L,
"h", "S008", 0L, 2L, 1L, 3L
)
Created on 2022-05-09 by the reprex package (v2.0.1)