-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpractice-pulgones.sas
53 lines (45 loc) · 1.29 KB
/
practice-pulgones.sas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* University: Universidad de Valladolid
* Degree: Grado en Estadística
* Subject: Regresión y ANOVA
* Year: 2017/18
* Teacher: Lourdes Barba Escribá
* Author: Sergio García Prado (garciparedes.me)
* Name: Práctica Pulgones
*/
data pulgones;
do semana=1 to 6;
do repet=1 to 40;
input recuento @@;
output;
end;
end;
datalines;
12 1 6 1 5 7 1 1 2 1 20 0 9 7 0 12 2 0 0 2 8 0 11 2 21 0 3 18 2 2 6 6
5 1 12 0 3 1 1 18 40 16 32 15 44 41 43 53 67 21 6 31 15 11 21 40 15 50
17 32 24 7 25 11 64 22 50 27 3 46 45 10 8 27 34 19 86 83 17 36 86 63
20 68 55 42 24 29 20 27 26 63 40 46 7 15 10 30 46 26 15 42 6 28 7 9 5
35 6 9 108 38 35 64 21 20 62 25 0 0 29 2 3 0 4 2 6 7 5 4 6 0 0 5 1 3 2
2 2 5 0 1 1 0 3 1 2 0 3 3 18 7 21 0 0 0 2 3 0 40 5 7 0 0 0 1 1 2 1 0
25 1 0 0 0 0 0 0 0 5 0 2 0 0 0 2 0 0 0 4 0 0 0 0 2 0 0 0 0 2 1 0 0 1 7
0 0 0 4 1 5 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
;
proc print data=pulgones (obs=8);
run;
proc univariate data=pulgones plot;
by semana;
var recuento;
qqplot recuento / normal;
run;
proc glm data=pulgones;
class semana;
model recuento=semana;
output out= resal p=pred r=res student=rst;
proc print data=resal;run;
proc univariate plot normal data=resal;
var res;
run;
proc glm data=pulgones;
class semana;
model recuento=semana;
run;