Description Usage Arguments Value Author(s) References Examples
View source: R/preprocess.outliers.R
This function receives a data set, the variable content and name, analyzes their content and extract outliers information, showing a boxplot and a histogram.
1 | preprocess.outliers(data.to.work, variable.content, variable.name)
|
data.to.work |
is a data frame containing the variables. |
variable.content |
is a variable with all content of variable in the data set. |
variable.name |
is the name of variable to be verified. |
a list with number of outliers and the variable content
Elias Carvalho
GUJARATI, Damodar N. Basic econometrics. Tata McGraw-Hill Education, 2009.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Clean environment
closeAllConnections()
rm(list=ls())
# Set enviroment
# setwd("to your working directory")
# Load packages
library(bnpa)
# Load data sets from package
data(dataQuantC)
# Set parameters to function
variable.content <- dataQuantC$A
variable.name <- "A"
# Preprocess information
preprocess.information <- preprocess.outliers(dataQuantC, variable.content, variable.name)
num.outliers <- preprocess.information[[1]]
variable.content <- preprocess.information[[2]]
mean.of.outliers <- preprocess.information[[3]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.