check_nv: Check normal distribution of Likert-scale type item

View source: R/check_nv.R

check_nvR Documentation

Check normal distribution of Likert-scale type item

Description

Check normal distribution of variables detecting whether there are outliers present and plotting the empirical distribution.

Usage

check_nv(
  var,
  data,
  outliers = FALSE,
  ID = NULL,
  exclude_outliers = FALSE,
  plot = TRUE,
  title = NULL,
  ...
)

Arguments

var

Variable to check, supplied as a string

data

Dataframe from which the variable stems

outliers

Whether function should check for outliers. If true, will return outlier values.

ID

Column by which outliers should be identified. Function will return a vector consisting of the IDs of the outliers.

exclude_outliers

Whether outliers should be removed prior to plotting the distribution of the variable.

plot

Whether ND should be plotted

title

Title. Used for plotting as well as for printing out test statistics. Defaults to variable name if not set.

...

Arguments to pass to 'plot_dist' for plotting of distribution


daaawit/ABOHiwi documentation built on March 23, 2022, 3:27 p.m.