desc_stat {AnalysisLin} | R Documentation |
Descriptive Statistics
Description
desc_stat() function calculates various key descriptive statistics for each variables in the provided data set. The function computes the count, number of unique values, duplicate count, number of missing values, null rate, data type, minimum value, 25th percentile, mean, median, 75th percentile, maximum value, standard deviation, kurtosis, skewness, and jarque_pvalue for each variable.
Usage
desc_stat(
data,
count = TRUE,
unique = TRUE,
duplicate = TRUE,
null = TRUE,
null_rate = TRUE,
type = TRUE,
min = TRUE,
p25 = TRUE,
mean = TRUE,
median = TRUE,
p75 = TRUE,
max = TRUE,
sd = TRUE,
skewness = FALSE,
kurtosis = FALSE,
shapiro = FALSE,
kolmogorov = FALSE,
anderson = FALSE,
lilliefors = FALSE,
jarque = FALSE
)
Arguments
data |
input dataset |
count |
An logical argument(default TRUE) that determines if count is included in the output |
unique |
An logical argument(default TRUE) that determines if unique is included in the output |
duplicate |
An logical argument(default TRUE) that determines if duplicate is included in the output |
null |
An logical argument(default TRUE) that determines if null is included in the output |
null_rate |
An logical argument(default TRUE) that determines if null_rate is included in the output |
type |
An logical argument(default TRUE) that determines if type is included in the output |
min |
An logical argument(default TRUE) that determines if min is included in the output |
p25 |
An logical argument(default TRUE) that determines if p25 is included in the output |
mean |
An logical argument(default TRUE) that determines if mean is included in the output |
median |
An logical argument(default TRUE) that determines if median is included in the output |
p75 |
An logical argument(default TRUE) that determines if p75 is included in the output |
max |
An logical argument(default TRUE) that determines if max is included in the output |
sd |
An logical argument(default TRUE) that determines if sd is included in the output |
skewness |
An logical argument(default FALSE) that determines if skewness is included in the output |
kurtosis |
An logical argument(default FALSE) that determines if kurtosis is included in the output |
shapiro |
An logical argument(default FALSE) that determines if shapiro p-value is included in the output |
kolmogorov |
An logical argument(default FALSE) that determines if kolmogorov p-value is included in the output |
anderson |
An logical argument(default FALSE) that determines if anderson p-value is included in the output |
lilliefors |
An logical argument(default FALSE) that determines if lilliefors p-value is included in the output |
jarque |
An logical argument(default FALSE) that determines if jarque p-value is included in the output |
Value
A data frame which summarizes the characteristics of a data set
Examples
data(mtcars)
desc_stat(mtcars)