• Aucun résultat trouvé

First we define a figure hook:

N/A
N/A
Protected

Academic year: 2022

Partager "First we define a figure hook:"

Copied!
2
0
0

Texte intégral

(1)

First we define a figure hook:

> options(SweaveHooks = list(fig = function() par(mfrow=c(2,2)))) Then we setup variable definitions without actually evaluating them

> x <- 1:10

> y <- rnorm(x)

Then we put the pieces together:

> x <- 1:10

> y <- rnorm(x)

> lm1 <- lm(y~x)

> summary(lm1) Call:

lm(formula = y ~ x) Residuals:

Min 1Q Median 3Q Max

-0.7125 -0.6122 -0.1006 0.4825 0.9848 Coefficients:

Estimate Std. Error t value Pr(>|t|) (Intercept) 0.08009 0.46293 0.173 0.867

x -0.09574 0.07461 -1.283 0.235

Residual standard error: 0.6777 on 8 degrees of freedom

Multiple R-squared: 0.1707, Adjusted R-squared: 0.06703 F-statistic: 1.647 on 1 and 8 DF, p-value: 0.2353

> plot(lm1)

1

(2)

−0.2 0.0 0.2 0.4 0.6

−1.0−0.50.00.5

Fitted values

Residuals

Residuals vs Fitted

7

3 8

−1.5 −0.5 0.5 1.5

−2.0−0.50.5

Theoretical Quantiles

Standardized residuals

Normal Q−Q

7

3 8

−0.2 0.0 0.2 0.4 0.6

0.00.51.01.5

Fitted values

Standardized residuals

Scale−Location

7

3 8

0.00 0.10 0.20 0.30

−2−101

Leverage

Standardized residuals

Cook's distance

1 0.5 0.5

Residuals vs Leverage

7

1 3

2

Références

Documents relatifs

Démontrer que DCEF est

For this particular problem, greedy best-first search using finds a solution without ever expanding a node that is not on the solution path; hence, its search cost is minimal. It

D´ efinir une fonction drawQuadTree/2 qui ` a partir d’un canevas (issu du module draw) et d’un arbre quaternaire produit un canevas qui pourra ˆ etre exporter au format

The last two rows are proportional, so subtracting from the third row three times the second row, we obtain a matrix with a zero row whose determinant is zero.. , n − 1, the row i

[r]

~ber 5 willkiirlichen Punkten des R.~ gibt es eine Gruppe yon 32 (involutorischen) Transformationen, welche auch in jeder anderen iiber irgend 6 besonderen

Le motif pied-de-coq est représenté par le polygone ci-dessous à droite (figure 2) qui peut être réalisé à l’aide d’un quadrillage régulier.. Marie a ffi rme « si je divise par

- Which unvarying vector elements allow removing the three degrees of freedom of rotation in a joint between two bodies S i and S j ?. - Which quantities allow introducing the