Class 7
Class 7
Class 7
[1] "C:/Users/user/Documents"
> setwd(C:/Users/user/Desktop/R)
> setwd("C:/Users/user/Desktop/R")
> getwd()
[1] "C:/Users/user/Desktop/R"
> bdt
Student Salary.000
1 1 750
2 2 600
3 3 600
4 4 650
5 5 700
6 6 780
7 7 860
8 8 810
9 9 780
10 10 670
11 11 690
12 12 550
13 13 610
14 14 715
15 15 755
16 16 770
17 17 680
18 18 670
19 19 740
20 20 760
21 21 775
22 22 845
23 23 870
24 24 640
25 25 690
26 26 715
27 27 630
28 28 685
29 29 780
30 30 635
> head(bdt)
Student Salary.000
1 1 750
2 2 600
3 3 600
4 4 650
5 5 700
6 6 780
> plot (bdt, col ="orange", type ="h", lwd = 3, main = "package for 30 students")
Warning messages:
kurtosis se
X1 -0.83 14.84
data: sa
683.1558 743.8442
sample estimates:
mean of x
713.5
683.1558 743.8442
sample estimates:
mean of x
713.5
data: sa
683.1558 743.8442
sample estimates:
mean of x
713.5
data: sa
t = 0, df = 29, p-value = 1
683.1558 743.8442
sample estimates:
mean of x
713.5
data: sa
672.6047 754.3953
sample estimates:
mean of x
713.5
> mdt
1 1 1 48
2 2 1 45
3 3 1 33
4 4 1 39
5 5 1 34
6 6 1 49
7 7 1 33
8 8 1 45
9 9 1 48
10 10 1 44
11 11 1 45
12 12 1 45
13 13 1 36
14 14 1 48
15 15 1 41
16 16 1 47
17 17 1 39
18 18 1 49
19 19 1 38
20 20 1 45
21 21 2 42
22 22 2 44
23 23 2 41
24 24 2 39
25 25 2 35
26 26 2 34
27 27 2 33
28 28 2 36
29 29 2 37
30 30 2 37
31 31 2 41
32 32 2 42
33 33 2 39
34 34 2 38
35 35 2 38
36 36 2 39
37 37 2 41
38 38 2 40
39 39 2 41
40 40 2 40
41 41 2 38
42 42 2 41
43 43 2 43
44 44 2 40
1 1 1 48
2 2 1 45
3 3 1 33
4 4 1 39
5 5 1 34
6 6 1 49
39 39 2 41
40 40 2 40
41 41 2 38
42 42 2 41
43 43 2 43
44 44 2 40
$names
[1] "data.frame"
$row.names
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
[22] 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
[43] 43 44
Error in subset.default(Mine) :
> mdt1
1 1 1 48
2 2 1 45
3 3 1 33
4 4 1 39
5 5 1 34
6 6 1 49
7 7 1 33
8 8 1 45
9 9 1 48
10 10 1 44
11 11 1 45
12 12 1 45
13 13 1 36
14 14 1 48
15 15 1 41
16 16 1 47
17 17 1 39
18 18 1 49
19 19 1 38
20 20 1 45
> mdt2
21 21 2 42
22 22 2 44
23 23 2 41
24 24 2 39
25 25 2 35
26 26 2 34
27 27 2 33
28 28 2 36
29 29 2 37
30 30 2 37
31 31 2 41
32 32 2 42
33 33 2 39
34 34 2 38
35 35 2 38
36 36 2 39
37 37 2 41
38 38 2 40
39 39 2 41
40 40 2 40
41 41 2 38
42 42 2 41
43 43 2 43
44 44 2 40
> dev.off()
null device
group: 1
--------------------------------------------------
group: 2
kurtosis se
0.65244 6.19756
sample estimates:
42.550 39.125
PAIRED SAMPLE TEST
> data
1 1 41 44
2 2 35 36
3 3 40 48
4 4 50 47
5 5 39 40
6 6 45 52
7 7 35 35
8 8 36 51
9 9 44 46
10 10 40 55
11 11 46 39
12 12 42 40
13 13 37 36
14 14 34 39
15 15 38 50
16 16 42 46
17 17 46 49
18 18 39 42
19 19 40 51
20 20 45 37
Paired t-test
data: Ef.Bt and Ef.At
-6.4696523 -0.4303477
sample estimates:
-3.45
> data = read.csv ("BT_AT_Data.csv", header = TRUE)
> data
1 1 41 44 -3
2 2 35 36 -1
3 3 40 48 -8
4 4 50 47 3
5 5 39 40 -1
6 6 45 52 -7
7 7 35 35 0
8 8 36 51 -15
9 9 44 46 -2
10 10 40 55 -15
11 11 46 39 7
12 12 42 40 2
13 13 37 36 1
14 14 34 39 -5
15 15 38 50 -12
16 16 42 46 -4
17 17 46 49 -3
18 18 39 42 -3
19 19 40 51 -11
20 20 45 37 8
> barplot (Difference, col ="orange", xlab = "Employee", ylab = "Difference between before and after")
> barplot (Difference, col ="orange", xlab = "Employee", ylab = "Difference between before and after",
main = "Effectiveness of training")
data: Difference
-6.4696523 -0.4303477
sample estimates:
mean of x
-3.45
>