check_nv | R Documentation |
Check normal distribution of variables detecting whether there are outliers present and plotting the empirical distribution.
check_nv( var, data, outliers = FALSE, ID = NULL, exclude_outliers = FALSE, plot = TRUE, title = NULL, ... )
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.