Anda di halaman 1dari 7

> latihan=read.table("d://fma.

csv",sep=";",header=TRUE)
> source("D:\\tea\\MULTIVARIAT\\modul 1\\r_multi.txt")
> fma=read.table("d://fma.csv",sep=";",header=TRUE)
> multinorm.test(fma)
$distance
[,1]
[1,] 1.08552937
[2,] 2.03316403
[3,] 0.77156733
[4,] 1.04100029
[5,] 0.42640532
[6,] 0.21848450
[7,] 0.15636510
[8,] 0.63110045
[9,] 4.33949867
[10,] 0.51420413
[11,] 0.47814661
[12,] 2.41749771
[13,] 8.78618049
[14,] 0.07074606
[15,] 0.20402068
[16,] 0.05648496
[17,] 0.84617632
[18,] 2.71609239
[19,] 2.50039909
[20,] 10.00706673
[21,] 0.48562217
[22,] 2.30234540
[23,] 0.78953665

[24,]
[25,]
[26,]
[27,]
[28,]
[29,]
[30,]
[31,]
[32,]
[33,]
[34,]
[35,]
[36,]
[37,]
[38,]
[39,]

2.92028109
0.02911968
5.64781193
1.40805861
3.80380986
0.26467576
0.41781871
1.89970075
4.33323782
1.34967472
3.28790258
2.13490817
3.59108835
0.20402068
1.47175430
0.35850254

$chisquared
[1] 1.386294
$proportion
[1] 0.5384615
> write.table(distance,file="d://cobacin.csv",sep=",")
Error in is.data.frame(x) : object 'distance' not found
> distance
Error: object 'distance' not found
> data=multinorm.test(fma)$distance
> data

[,1]
[1,] 1.08552937
[2,] 2.03316403
[3,] 0.77156733
[4,] 1.04100029
[5,] 0.42640532
[6,] 0.21848450
[7,] 0.15636510
[8,] 0.63110045
[9,] 4.33949867
[10,] 0.51420413
[11,] 0.47814661
[12,] 2.41749771
[13,] 8.78618049
[14,] 0.07074606
[15,] 0.20402068
[16,] 0.05648496
[17,] 0.84617632
[18,] 2.71609239
[19,] 2.50039909
[20,] 10.00706673
[21,] 0.48562217
[22,] 2.30234540
[23,] 0.78953665
[24,] 2.92028109
[25,] 0.02911968
[26,] 5.64781193
[27,] 1.40805861
[28,] 3.80380986

[29,] 0.26467576
[30,] 0.41781871
[31,] 1.89970075
[32,] 4.33323782
[33,] 1.34967472
[34,] 3.28790258
[35,] 2.13490817
[36,] 3.59108835
[37,] 0.20402068
[38,] 1.47175430
[39,] 0.35850254
> write.table(data,file="d://cobacin.csv",sep=",")
> write.table(data,file="d://cobacin.csv",sep=";")
> > fmb=read.table("d://fmb.csv",sep=";",header=TRUE)
> multinorm.test(fmb)
$distance
[,1]
[1,] 2.65384364
[2,] 3.05927328
[3,] 0.33428923
[4,] 5.57001337
[5,] 1.91326595
[6,] 2.60545314
[7,] 1.85895609
[8,] 2.97869860
[9,] 3.47009076
[10,] 7.13627529
[11,] 0.65455327
[12,] 14.80859350

[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,]

0.31895371
1.63834956
1.24315649
0.52284679
2.77230358
0.45054976
0.36907892
1.86788633
0.76078893
0.48716175
0.10233768
0.41367001
1.70454038
1.98745441
0.06699239
3.89838942
1.35234950
1.44337785
0.10535909
0.57535584
0.87001323
0.10233768
2.00781866
2.01989421
0.01314538
1.25558774
0.60699456

$chisquared

[1] 1.386294
$proportion
[1] 0.5128205
> djb=multinorm.test$distance
Error in multinorm.test$distance :
object of type 'closure' is not subsettable
> djb=multinorm.test(fmb)$distance
> djb
[,1]
[1,] 2.65384364
[2,] 3.05927328
[3,] 0.33428923
[4,] 5.57001337
[5,] 1.91326595
[6,] 2.60545314
[7,] 1.85895609
[8,] 2.97869860
[9,] 3.47009076
[10,] 7.13627529
[11,] 0.65455327
[12,] 14.80859350
[13,] 0.31895371
[14,] 1.63834956
[15,] 1.24315649
[16,] 0.52284679
[17,] 2.77230358
[18,] 0.45054976

[19,] 0.36907892
[20,] 1.86788633
[21,] 0.76078893
[22,] 0.48716175
[23,] 0.10233768
[24,] 0.41367001
[25,] 1.70454038
[26,] 1.98745441
[27,] 0.06699239
[28,] 3.89838942
[29,] 1.35234950
[30,] 1.44337785
[31,] 0.10535909
[32,] 0.57535584
[33,] 0.87001323
[34,] 0.10233768
[35,] 2.00781866
[36,] 2.01989421
[37,] 0.01314538
[38,] 1.25558774
[39,] 0.60699456
> write.table(djb,file="d://djb.csv",sep=";")>