| |
| |
Preface | |
| |
| |
Basics | |
| |
| |
First steps | |
| |
| |
An overgrown calculator | |
| |
| |
Assignments | |
| |
| |
Vectorized arithmetic | |
| |
| |
Standard procedures | |
| |
| |
Graphics | |
| |
| |
R language essentials | |
| |
| |
Expressions and objects | |
| |
| |
Functions and arguments | |
| |
| |
Vectors | |
| |
| |
Missing values | |
| |
| |
Functions that create vectors | |
| |
| |
Matrices and arrays | |
| |
| |
Factors | |
| |
| |
Lists | |
| |
| |
Data frames | |
| |
| |
Indexing | |
| |
| |
Conditional selection | |
| |
| |
Indexing of data frames | |
| |
| |
subset and transform | |
| |
| |
Grouped data and data frames | |
| |
| |
Sorting | |
| |
| |
Implicit loops | |
| |
| |
The graphics subsystem | |
| |
| |
Plot layout | |
| |
| |
Building a plot from pieces | |
| |
| |
Using par | |
| |
| |
Combining plots | |
| |
| |
R programming | |
| |
| |
Flow control | |
| |
| |
Classes and generic functions | |
| |
| |
Session management | |
| |
| |
The workspace | |
| |
| |
Getting help | |
| |
| |
Packages | |
| |
| |
Built-in data | |
| |
| |
attach and detach | |
| |
| |
Data entry | |
| |
| |
Reading from a text file | |
| |
| |
The data editor | |
| |
| |
Interfacing to other programs | |
| |
| |
Exercises | |
| |
| |
Probability and distributions | |
| |
| |
Random sampling | |
| |
| |
Probability calculations and combinatorics | |
| |
| |
Discrete distributions | |
| |
| |
Continuous distributions | |
| |
| |
The built-in distributions in R | |
| |
| |
Densities | |
| |
| |
Cumulative distribution functions | |
| |
| |
Quantiles | |
| |
| |
Random numbers | |
| |
| |
Exercises | |
| |
| |
Descriptive statistics and graphics | |
| |
| |
Summary statistics for a single group | |
| |
| |
Graphical display of distributions | |
| |
| |
Histograms | |
| |
| |
Empirical cumulative distribution | |
| |
| |
Q-Q plots | |
| |
| |
Boxplots | |
| |
| |
Summary statistics by groups | |
| |
| |
Graphics for grouped data | |
| |
| |
Histograms | |
| |
| |
Parallel boxplots | |
| |
| |
Stripcharts | |
| |
| |
Tables | |
| |
| |
Generating tables | |
| |
| |
Marginal tables and relative frequency | |
| |
| |
Graphical display of tables | |
| |
| |
Bar plots | |
| |
| |
Dotcharts | |
| |
| |
Pie charts | |
| |
| |
Exercises | |
| |
| |
One- and two-sample tests | |
| |
| |
One-sample t test | |
| |
| |
Wilcoxon signed-rank test | |
| |
| |
Two-sample t test | |
| |
| |
Comparison of variances | |
| |
| |
Two-sample Wilcoxon test | |
| |
| |
The paired t test | |
| |
| |
The matched-pairs Wilcoxon test | |
| |
| |
Exercises | |
| |
| |
Regression and correlation | |
| |
| |
Simple linear regression | |
| |
| |
Residuals and fitted values | |
| |
| |
Prediction and confidence bands | |
| |
| |
Correlation | |
| |
| |
Pearson correlation | |
| |
| |
Spearman's � | |
| |
| |
Kendall's � | |
| |
| |
Exercises | |
| |
| |
ANOVA and Kruskal-Wallis | |
| |
| |
One-way analysis of variance | |
| |
| |
Pairwise comparisons and multiple testing | |
| |
| |
Relaxing the variance assumption | |
| |
| |
Graphical presentation | |
| |
| |
Bartlett's test | |
| |
| |
Kruskal-Wallis test | |
| |
| |
Two-way analysis of variance | |
| |
| |
Graphics for repeated measurements | |
| |
| |
The Friedman test | |
| |
| |
The ANOVA table in regression analysis | |
| |
| |
Exercises | |
| |
| |
Tabular data | |
| |
| |
Single proportions | |
| |
| |
Two independent proportions | |
| |
| |
k proportions, test for trend | |
| |
| |
r � c tables | |
| |
| |
Exercises | |
| |
| |
Power and the computation of sample size | |
| |
| |
The principles of power calculations | |
| |
| |
The power of one-sample and paired t tests | |
| |
| |
Power of two-sample t test | |
| |
| |
Approximate methods | |
| |
| |
Power of comparisons of proportions | |
| |
| |
Two-sample problems | |
| |
| |
One-sample problems and paired tests | |
| |
| |
Comparison of proportions | |
| |
| |
Exercises | |
| |
| |
Multiple regression | |
| |
| |
Plotting multivariate data | |
| |
| |
Model specification and output | |
| |
| |
Model search | |
| |
| |
Exercises | |
| |
| |
Linear models | |
| |
| |
Polynomial regression | |
| |
| |
Regression through the origin | |
| |
| |
Design matrices and dummy variables | |
| |
| |
Linearity over groups | |
| |
| |
Interactions | |
| |
| |
Two-way ANOVA with replication | |
| |
| |
Analysis of covariance | |
| |
| |
Graphical description | |
| |
| |
Comparison of regression lines | |
| |
| |
Diagnostics | |
| |
| |
Exercises | |
| |
| |
Logistic regression | |
| |
| |
Generalized linear models | |
| |
| |
Logistic regression on tabular data | |
| |
| |
The analysis of deviance table | |
| |
| |
Connection to test for trend | |
| |
| |
Logistic regression using raw data | |
| |
| |
Prediction | |
| |
| |
Model checking | |
| |
| |
Exercises | |
| |
| |
Survival analysis | |
| |
| |
Essential concepts | |
| |
| |
Survival objects | |
| |
| |
Kaplan-Meier estimates | |
| |
| |
The log-rank test | |
| |
| |
The Cox proportional hazards model | |
| |
| |
Exercises | |
| |
| |
Obtaining and installing R | |
| |
| |
Data sets in the ISwR package | |
| |
| |
Compendium | |
| |
| |
Index | |