R Commands Flashcards
What does the lm command do?
Produces estimates that minimise the squared difference between the observed data and the values returned by the model. (Least Squares)
What does the Anova command do (not anova)?
Gives p-values for all predictions in a multiple regression model.
What does the dredge command do? (MuMIn library)
The best model (by AICc) is at the top, gives all possible subsets.
What does the crPlots command do?
Plots partial residuals.
What does the cor command do?
Calculates r, the correlation coefficient.
What does the cor.test command do?
Gives confidence intervals for ρ, the unknown population correlation coefficient.
What does the summary command show?
Min. 1st Qu. Median. Mean. 3rd Qu. Max.
What does the boot.ci command do?
Calculates bootstraped confidence intervals.
What does the t.test command do?
t.test.
pt(q, df=30, lower.tail=TRUE) ??
Calculates a probability p, that X is less than/equal to q.
qt(p, df=30, lower.tail=TRUE) ??
Returns a quantile q associated with probability p.
dt(x, df=30) ??
Calculates the density at value x from a t(df=30) distribution.
rt(n, df=30) ??
Generates n random observations from a t(df=30) distribution.