PacktLib: Statistical Analysis with R

Statistical Analysis with R Beginner's Guide

Credits

About the Author

About the Reviewers

Preface

Uncovering the Strategist's Data Analysis Tool

What is R?

What are the benefits of using R?

Why should I use R?

Why should I read this book?

What topics are covered in this book?

Summary

Preparing R for Battle

Time for action – downloading and installing R

Time for action – issuing your first R command

Time for action – setting your R working directory

Summary

Exploring the Mysterious Data Analysis Tool

Deciphering Zhuge Liang's magic square

Time for action – solving the first 4x4 magic square

Summary

Collecting and Organizing Information

Time for action – importing external data

Time for action – creating and calling variables

Time for action – accessing data within variables

Time for action – manipulating variable data

Time for action – managing the R workspace

Summary

Assessing the Situation

Time for action – making an initial inference from our data

Examining our data

Time for action – creating a subset from a large dataset

Time for action – deriving summary statistics

Time for action – quantifying categorical variables

Time for action – correlating variables

Regression

Time for action – modelling with simple linear regression

Time for action – modelling with multiple linear regression

Time for action – modelling interactions

Time for action – comparing and choosing models

Summary

Planning the Attack

Review of models

Predicting outcomes using regression models

Time for action – calculating outcomes from regression models

Time for action – creating custom functions

Time for action – creating resource-focused custom functions

Logistical considerations

Time for action – incorporating resource constraints into predictions

Assessing viability

Time for action – assessing the viability of potential strategies

Summary

Organizing the Battle Plans

Retracing and refining a complete analysis

Time for action – first steps

Time for action – data setup

Time for action – data exploration

Time for action – model development

Time for action – model deployment

Time for action – last steps

The common steps to all R analyses

Summary

Briefing the Emperor

Charts, graphs, and plots in R

Time for action – creating a bar chart

Time for action – customizing graphics

Time for action – creating a scatterplot

Time for action – creating a line chart

Time for action – creating a box plot

Time for action – creating a histogram

Time for action – creating a pie chart

Time for action – exporting graphics

Summary

Briefing the Generals

More charts, graphs, and plots in R

Time for action – customizing a bar chart

Time for action – customizing a scatterplot

Time for action – customizing a line chart

Time for action – customizing a box plot

Time for action – customizing a histogram

Time for action – customizing a pie chart

Time for action – building a graphic

Time for action – building a graphic with multiple visuals

Summary

Becoming a Master Strategist

R's built-in resources

Time for action – using R's help function

Time for action – expanding R with packages

R's online resources

Summary

Pop Quiz Answer Key

Pop Quiz Answer Key

Pop Quiz Answer Key

Pop Quiz Answer Key

Pop Quiz Answer Key

Pop Quiz Answer Key

Pop Quiz Answer Key

Pop Quiz Answer Key

Pop Quiz Answer Key

Pop Quiz Answer Key

Index