O'Reilly logo

Regression Analysis with R by Giuseppe Ciaburro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exploratory analysis

Before starting with data analysis through the neural network, we conduct an exploratory analysis to understand how the data is distributed and extract preliminary knowledge. Let's start by checking the dataset using the str() function. This function provides a compact display of the internal structure of an object. Ideally, only one line for each basic structure is displayed:

str(AutoData)

The results are shown here:

> str(AutoData)'data.frame':  398 obs. of  9 variables: $ mpg         : num  18 15 18 16 17 15 14 14 14 15 ... $ cylinders   : int  8 8 8 8 8 8 8 8 8 8 ... $ displacement: num  307 350 318 304 302 429 454 440 455 390 ... $ horsepower  : Factor w/ 94 levels "?","100.0","102.0",..: 17 35                 29 29 24 42 47 46 48 40 ... $ weight ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required