Introduction

The functions in nurser were developed to provide useful and informative front-end machine learning metrics that are applicable to a wide array of datasets. Currently nurser contains three functions, each of which are independent of one another. This vignette outlines how to use these functions on some real data.


library(nurser)
library(magrittr)

eda

The eda() function return a list that contains histogram and summary statistics for a given column. Let’s see it in action!

To view a histogram of a feature:

result <- eda(mtcars)

Now let’s see the summary statistics of this feature:


impute_summary

Let’s import some continuous data to work with,

and add some missing values,

Now, let’s take a look at the data to in fact see if the missing values were generated and where they are:

Great, we have some missing values to compute - let’s call impute_summary to get some summary statistics and outputs from different methods.

iris_imputed <- impute_summary(iris_missing)

impute_summary() provides some useful summary statistics and also several imputed dataframes that can be accessed by the impute_summary object attributes. The imputed data frames provided include:

  • mean,
  • median,
  • max,
  • min,
  • random,
  • multiple imputation,
  • pmm, and
  • random forest

Let’s first take a look at the summaries, which can be accessed using $nan_counts (NA counts for each feature) and $nan_rowindex (rows that contain NA values):

Now, let’s take a look at two of the imputed data frames, mean and multiple imputation: