Escolar Documentos
Profissional Documentos
Cultura Documentos
data: w
W = 0.91384, p-value = 5.832e-08
Código no R
DESIGN.VSEMANAL.SZERO <- read.delim("C:/Users/User/Desktop/ARQUIVOS AR
ENA/DESIGN VSEMANAL SZERO.txt")
> View(DESIGN.VSEMANAL.SZERO)
> y <- DESIGN.VSEMANAL.SZERO$QTY
> x <- DESIGN.VSEMANAL.SZERO$WEEK
> hist(y)
> model = lm(y ~ x, data = DESIGN.VSEMANAL.SZERO)
> summary (model)
Call:
lm(formula = y ~ x, data = DESIGN.VSEMANAL.SZERO)
Residuals:
Min 1Q Median 3Q Max
-180.29 -106.67 -69.40 23.75 1104.06
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 182.1198 32.3398 5.631 8.33e-08 ***
x -0.8337 0.3596 -2.318 0.0218 *
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
data: w
W = 0.91384, p-value = 5.832e-08
> qqnorm(w)
> qqline(w)