R Commands Flashcards

1
Q

What does the lm command do?

A

Produces estimates that minimise the squared difference between the observed data and the values returned by the model. (Least Squares)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the Anova command do (not anova)?

A

Gives p-values for all predictions in a multiple regression model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the dredge command do? (MuMIn library)

A

The best model (by AICc) is at the top, gives all possible subsets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the crPlots command do?

A

Plots partial residuals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the cor command do?

A

Calculates r, the correlation coefficient.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the cor.test command do?

A

Gives confidence intervals for ρ, the unknown population correlation coefficient.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the summary command show?

A

Min. 1st Qu. Median. Mean. 3rd Qu. Max.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the boot.ci command do?

A

Calculates bootstraped confidence intervals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the t.test command do?

A

t.test.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

pt(q, df=30, lower.tail=TRUE) ??

A

Calculates a probability p, that X is less than/equal to q.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

qt(p, df=30, lower.tail=TRUE) ??

A

Returns a quantile q associated with probability p.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

dt(x, df=30) ??

A

Calculates the density at value x from a t(df=30) distribution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

rt(n, df=30) ??

A

Generates n random observations from a t(df=30) distribution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly