Skip to Content
Regression Analysis with R
book

Regression Analysis with R

by Giuseppe Ciaburro, Pierre Paquay, Manoj Kumar, Shaikh Salamatullah
January 2018
Beginner to intermediate
422 pages
9h 47m
English
Packt Publishing
Content preview from Regression Analysis with R

Missing values           

A missing value occurs when an unknown value is stored for the variable in an observation. Missing data is a common occurrence and can have a significant effect on the operations that can be done on the data. In R, missing values are represented by the NA symbol. This symbol is a special value whose properties are different from other values. NA is one of the very few reserved words in R: we cannot give anything this name.

To detect missing values, we can use the is.na() function that indicates which elements are missing. This function returns a logical vector the same length as its argument, with TRUE for missing values and FALSE for non-missings. We apply this function to the data frame so far used:

is.na(SampleData) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Quantitative Finance with R

Learning Quantitative Finance with R

PRASHANT VATS, Dr. Param Jeet
R: Data Analysis and Visualization

R: Data Analysis and Visualization

Tony Fischetti, Brett Lantz, Jaynal Abedin, Hrishi V. Mittal, Bater Makhabel, Edina Berlinger, Ferenc Illés, Milán Badics, Ádám Banai, Gergely Daróczi, Barbara Dömötör, Gergely Gabler, Dániel Havran, Péter Juhász, István Margitai, Balázs Márkus, Péter Medvegyev, Julia Molnár, Balázs Árpád Szucs, Ágnes Tuza, Tamás Vadász, Kata Váradi, Ágnes Vidovics-Dancs
Regression Analysis by Example, 4th Edition

Regression Analysis by Example, 4th Edition

Samprit Chatterjee, Ali S. Hadi

Publisher Resources

ISBN: 9781788627306Supplemental Content