The objective of this text is to introduce RStudio to practitioners and students and enable them to use R in their everyday work. It is not a statistical textbook, the purpose is to transmit the joy of analyzing data with RStudio. Practitioners and students learn how RStudio can be installed and used, they learn to import data, write scripts and save working results. Furthermore, they learn to employ descriptive statistics and create graphics with RStudio. Additionally, it is shown how RStudio can be used to test hypotheses, run an analysis of variance and regressions. To deepen the learned content, tasks are included with the solutions provided at the end of the textbook. This textbook has been recommended and developed for university courses in Germany, Austria and Switzerland.
Author(s): Franz Kronthaler, Silke Zöllner
Publisher: Springer Spektrum
Year: 2021
Language: English
Pages: 124
City: Berlin
Contents
List of Figures
List of Tables
1 R and RStudio
1.1 A Note on How to Use the Script
1.2 About R and RStudio
1.3 How to Install R and RStudio
1.4 The Structure of RStudio
1.5 A First Data Analysis Application with RStudio
1.6 How to Install RStudio Packages
2 Data Analysis Basics with RStudio
2.1 How to Read Data with RStudio
2.2 How to Check Data with RStudio
2.3 Creating and Modifying Variables and Selecting Cases with RStudio
2.4 Commands and Command Structure in RStudio
2.5 Script Files and Reporting
2.6 Time to Try
3 Data Tourism (Simulated)
4 Describing Data with RStudio
4.1 Descriptive Key Figures
4.2 Statistical Charts
Important Statistical Charts While Analyzing Data
Statistical Charts with ggplot2
4.3 Time to Try
5 Testing Normal Distribution with RStudio
5.1 Graphical Ways to Check for Normal Distribution
5.2 Numerical Ways to Check for Normal Distribution
5.3 Time to Try
6 Testing Hypotheses with RStudio
6.1 One-Sample t-Test
6.2 Two-Sample t-Test Independent Samples
6.3 Wilcoxon Rank-Sum Test
6.4 Two-Sample t-Test Dependent Samples
6.5 Wilcoxon Signed-Rank Test
6.6 Analysis of Variance ANOVA
6.7 Correlation Test for Metric, Ordinal and Nominal Variables
6.8 Time to Try
7 Linear Regression with RStudio
7.1 Simple and Multivariate Linear Regression
7.2 Regression Diagnostic with RStudio
7.3 Time to Try
8 Further Reading
9 Appendix
9.1 Appendix 1: Questionnaire
9.2 Appendix 2: Dataset tourism.xlsx Including Legend
9.3 Appendix 3: How to Deal with Missing Data
9.4 Appendix 4: Solutions for the Tasks