MANE 6313
Glossary of R Commands
Week 2
R Command | External Library | Description | Documentation |
---|---|---|---|
c() | Combined values into a vector or list | c Documentation | |
rnorm() | Generate random normal data | rnorm Documentation | |
summary() | Produce summary of object | summary Documentation | |
describe() | psych | Basic statistics | describe Documentation |
hist() | Histogram | hist Documentation | |
boxplot() | Boxplot | Boxplot Documentation | |
stem() | Stem and Leaf Diagram | Stem and Leaf Documentation | |
plot() | Plot | plot Documentation | |
qqnorm() | QQ-plot (normal probability) | qqnorm Documentation | |
qqPlot() | car | QQ-Plot with confidence band | qqPlot Documentation |
read_excel() | readxl | Read Excel file | read_excel Documentation |
str() | Structure of R object | str Documentation | |
summary() | Summary of R object | summary Documentation | |
cor() | Correlation | corr Documentation | |
round() | Round | round Documentation | |
rt() | Generate random t variables | rtDocumentation |
Week 3
R Command | External Library | Description | Documentation |
---|---|---|---|
t.test() | One/two/paired t-tests | t.test Documentation | |
varTest() | EnvStats | Chi-squared test of variance | varTest Documentation |
var() | Variance | var Documentation | |
sd() | Standard Deviation | sd Documentation | |
var.test() | F-test | var.test Documentation |
Week 4
R Command | External Library | Description | Documentation |
---|---|---|---|
aov() | Fit Analysis of Variance Model | aov Documentation | |
oneway.test() | One-way Analysis of Variance | oneway.test Documentation | |
shapiro.test() | Wilks-Shapiro Test for Normality | shapiro.test Documentation | |
abline() | Add straight lines to plot | abline Documentation | |
par() | Multiple Plots | par Documentation | |
dotplot() | lattice | Dotplots | dotplot Documentation |
bartlett.test | Bartlett's Test | bartlett.test Documentation | |
levene.test | lawstat | Levene's Test | levene.test Documentation |
ggplot | ggplot2 | Fancy Plots | ggplot Documentation |
TukeyHSD | Tukey's Test (multiple comparisons) | TukeyHSD Documentation | |
DunnettTest | DescTools | Dunnett's Test for a Control | DunnettTest Documentation |
Kruskal.test | Kruskal-Wallis Test | Kruskall.test Documentation | |
BoxCox | MASS | Box-Cox Transformation | BoxCox Transformation |
Week 5
R Command | External Library | Description | Documentation |
---|---|---|---|
head() | Returns first part of data objec t | head Function Documentation | |
factor() | Encode a Vector as a factor | factor | |
rep() | Replicate Elements of Vector and List | rep Documentation | |
data.frame() | Create Data Frame | data.frame Documentation | |
design.rcbd() | agricolae | Design RCBD | design.rcbd Documentation |
design.lsd() | agricolae | Design Latin Square | design.lsd Documentation |
design.graeco() | agricolae | Design Graeco-Latin Square | design.graeco Documentation |
Week 6
R Command | External Library | Description | Documentation |
---|---|---|---|
fac.design() | DoE.base | Function for Full Factorial Designs | fac.design Documentation |
add.response() | DoE.base | Fuction to add reponse values | add.response Documentation |
interaction.plot() | Two-way Interaction Plot | interaction.plot Documentation | |
ggplot() | ggplot2 | Create a ggplot plot | ggplot Documentation |
rstandard() | Standardized Residuals |
Week 7
R Command | External Library | Description | Documentation |
---|---|---|---|
DanielPlot() | FrF2 | Half Normal Probability Plot | DanielPlot Documentation |
lm() | Fitting Linear Models | lm Documentation | |
contour() | rsm | Contour Plot | contour Documentation |
persp.lm() | rsm | 3-D Plot | persp.lm Documentation |
rbind() | Binding Rows | rbind Tutorial | |
rsm() | rsm | Response-Surface Regression | rsm Documentation |
Week 8
The only new R command is the block.gen feature with fac.design (DoE.base).
Week 9
Spring Break occurs during Week 9 and no new material is introduced.
Week 10
R Command | External Library | Description | Documentation |
---|---|---|---|
FrF2() | FrF2 | Fractional Factorial Designs | FrF2 Documentation |
IAPlot() | FrF2 | Main Effects and Interaction Plots | IAPlot |
Week 11
The only new R commands are
- design.info() within FrF2, Module C
- fold.design() within FrF2, Module D
- add.center() within FrF2, Module F
Week 12
R Command | External Library | Description | Documentation |
---|---|---|---|
confint() | Confidence Intervals for Model Parameters | confint() documentation | |
predict.lm() | Predict method for Linear Model Fits | predict.lm() documentation | |
anova() | Anova Tables | anova() documentation |
Week 13
R Command | External Library | Description | Documentation |
---|---|---|---|
bbd() | rsm | Generate a Box-Behnken Design | bbd() documentation |
rsm() | rsm | Response-Surface Regression | rsm() documentation |
persp() | Perspective Plots | persp() documentation | |
contour() | Display Contours | contour() documentation |
Week 14
R Command | External Library | Description | Documentation |
---|---|---|---|
ccd() | rsm | Generate a central composite Design | ccd() documentation |
matrix() | Matrices | matrix() documentation | |
solve() | Solve a System of Equations | solve() documentation | |
cube() | rsm | Create cube portion of CCD Design | cube() documentation |
djoin() | rsm | Join designs together into a blocked design | djoin() documentation |