This book provides an elementary-level introduction to R, targeting both non-statistician scientists in various fields and students of statistics. The main mode of presentation is via code examples with liberal commenting of the code and the output, from the computational as well as the statistical viewpoint. Brief sections introduce the statistical methods before they are used. A supplementary R package can be downloaded and contains the data sets. All examples are directly runnable and all graphics in the text are generated from the examples. The statistical methodology covered includes statistical standard distributions, one- and two-sample tests with continuous data, regression analysis, one-and two-way analysis of variance, regression analysis, analysis of tabular data, and sample size calculations. In addition, the last four chapters contain introductions to multiple linear regression analysis, linear models in general, logistic regression, and survival analysis.
Peter Dalgaard is associate professor at the Biostatistical Department at the University of Copenhagen and has extensive experience in teaching within the PhD curriculum at the Faculty of Health Sciences. He was chairman of the Danish Society for Theoretical Statistics from 1996 to 2000. Peter Dalgaard has been a key member of the R Core Team since August 1997 and is well known among R users.
Basics. - The R environment. - Probability and statistics. - Descriptive statistics and graphics. - One and two sample tests. - Regression and correlation. - ANOVA and Kruskal-Wallis. - Tabular data. - Power and the computation of sample size. - Advanced data handling. - Multiple regression. - Linear models. - Logistic regression. - Survival analysis. - Rates and Poisson regression. - Nonlinear curve-fitting. - Obtaining and installing R and the ISwR package. - Data sets in the ISwR package. - Compendium. - Answers to exercises. - Index.