Vous êtes sur la page 1sur 6

> rm(list=ls())

> dataRAKriswandi<-read.delim("clipboard")
> dataRAKriswandi
perlakuan kelompok respon
1 v1 1 6.78
2 v1 2 6.51
3 v1 3 6.92
4 v1 4 7.08
5 v2 1 6.88
6 v2 2 7.40
7 v2 3 6.80
8 v2 4 6.98
9 v3 1 9.29
10 v3 2 10.73
11 v3 3 10.00
12 v3 4 9.17
13 v4 1 7.92
14 v4 2 8.54
15 v4 3 6.40
16 v4 4 7.09
17 v5 1 7.50
18 v5 2 7.19
19 v5 3 6.88
20 v5 4 5.94
21 v6 1 8.70
22 v6 2 7.79
23 v6 3 7.80
24 v6 4 7.50
25 v7 1 7.13
26 v7 2 6.88
27 v7 3 5.84
28 v7 4 7.09
> model<-aov(respon~kelompok+perlakuan,data=dataRAKriswandi)
> summary(model)
Df Sum Sq Mean Sq F value Pr(>F)
kelompok 1 1.491 1.491 4.678 0.0428 *
perlakuan 6 28.564 4.761 14.933 1.88e-06 ***
Residuals 20 6.376 0.319
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
> fix(dataRAKriswandi)
> model<-aov(respon~kelompok+perlakuan,data=dataRAKriswandi)
> summary(model)
Df Sum Sq Mean Sq F value Pr(>F)
kelompok 3 2.199 0.733 2.327 0.109
perlakuan 6 28.564 4.761 15.116 3.73e-06 ***
Residuals 18 5.669 0.315
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
> library(agricolae)
Error in library(agricolae) : there is no package called agricolae
> utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session ---
also installing the dependencies gdata, combinat, sp, LearnBayes,
deldir, coda, gmodels, klaR, spdep, AlgDesign

trying URL
'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/gdata_2.17.0.zip'
Content type 'application/zip' length 1178262 bytes (1.1 MB)
downloaded 480 KB

trying URL
'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/combinat_0.0-8.zip'
Content type 'application/zip' length 29403 bytes (28 KB)
downloaded 28 KB

trying URL 'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/sp_1.2-


3.zip'
Content type 'application/zip' length 1569384 bytes (1.5 MB)
downloaded 1.4 MB

trying URL
'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/LearnBayes_2.15.zip'
Content type 'application/zip' length 1130081 bytes (1.1 MB)
downloaded 1.1 MB

trying URL
'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/deldir_0.1-12.zip'
Content type 'application/zip' length 171634 bytes (167 KB)
downloaded 167 KB

trying URL 'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/coda_0.18-


1.zip'
Content type 'application/zip' length 199774 bytes (195 KB)
downloaded 195 KB

trying URL
'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/gmodels_2.16.2.zip'
Content type 'application/zip' length 73929 bytes (72 KB)
downloaded 72 KB

trying URL 'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/klaR_0.6-


12.zip'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL
'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/klaR_0.6-12.zip'
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
downloaded length 491520 != reported length 1178262
2: In download.file(url, destfile, method, mode = "wb", ...) :
downloaded length 1503232 != reported length 1569384
3: In download.file(url, destfile, method, mode = "wb", ...) :
InternetOpenUrl failed: 'The connection with the server was reset'
Warning in download.packages(pkgs, destdir = tmpd, available = available,
:
download of package klaR failed
trying URL 'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/spdep_0.6-
8.zip'
Content type 'application/zip' length 3812083 bytes (3.6 MB)
downloaded 3.6 MB

trying URL
'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/AlgDesign_1.1-
7.3.zip'
Content type 'application/zip' length 570356 bytes (556 KB)
downloaded 556 KB

trying URL
'http://wbc.upm.edu.my/cran/bin/windows/contrib/3.3/agricolae_1.2-4.zip'
Content type 'application/zip' length 927253 bytes (905 KB)
downloaded 905 KB

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package",


"Type")) :
cannot open the connection
In addition: Warning messages:
1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
2: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
cannot open compressed file 'gdata/DESCRIPTION', probable reason 'No
such file or directory'
> library(agricolae)
Error in library(agricolae) : there is no package called agricolae
> chooseCRANmirror()
Warning: failed to download mirrors file (cannot open URL
'https://cran.r-project.org/CRAN_mirrors.csv'); using local file
'C:/PROGRA~1/R/R-33~1.1/doc/CRAN_mirrors.csv'
Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
InternetOpenUrl failed: 'A connection with the server could not be
established'
> chooseCRANmirror()
Warning: failed to download mirrors file (cannot open URL
'https://cran.r-project.org/CRAN_mirrors.csv'); using local file
'C:/PROGRA~1/R/R-33~1.1/doc/CRAN_mirrors.csv'
Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
InternetOpenUrl failed: 'The server name or address could not be
resolved'
> utils:::menuInstallPkgs()
Warning: unable to access index for repository
http://cran.repo.bppt.go.id/src/contrib:
cannot open URL 'http://cran.repo.bppt.go.id/src/contrib/PACKAGES'
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type
= type) :
no packages were specified
> utils:::menuInstallLocal()
> utils:::menuInstallPkgs()
Warning: unable to access index for repository
http://cran.repo.bppt.go.id/src/contrib:
cannot open URL 'http://cran.repo.bppt.go.id/src/contrib/PACKAGES'
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type
= type) :
no packages were specified
> chooseCRANmirror()
Warning: failed to download mirrors file (cannot open URL
'https://cran.r-project.org/CRAN_mirrors.csv'); using local file
'C:/PROGRA~1/R/R-33~1.1/doc/CRAN_mirrors.csv'
Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
InternetOpenUrl failed: 'The server name or address could not be
resolved'
> utils:::menuInstallPkgs()
also installing the dependencies gdata, combinat, sp, LearnBayes,
deldir, coda, gmodels, klaR, spdep, AlgDesign

trying URL
'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/gdata_2.17.0.zip'
Content type 'application/zip' length 1178262 bytes (1.1 MB)
downloaded 1.1 MB

trying URL
'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/combinat_0.0-8.zip'
Content type 'application/zip' length 29403 bytes (28 KB)
downloaded 28 KB

trying URL 'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/sp_1.2-


3.zip'
Content type 'application/zip' length 1575307 bytes (1.5 MB)
downloaded 1.5 MB

trying URL
'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/LearnBayes_2.15.zip'
Content type 'application/zip' length 1130081 bytes (1.1 MB)
downloaded 1.1 MB

trying URL
'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/deldir_0.1-12.zip'
Content type 'application/zip' length 171634 bytes (167 KB)
downloaded 167 KB

trying URL
'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/coda_0.18-1.zip'
Content type 'application/zip' length 199628 bytes (194 KB)
downloaded 194 KB

trying URL
'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/gmodels_2.16.2.zip'
Content type 'application/zip' length 73873 bytes (72 KB)
downloaded 72 KB

trying URL 'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/klaR_0.6-


12.zip'
Content type 'application/zip' length 319756 bytes (312 KB)
downloaded 312 KB
trying URL
'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/spdep_0.6-8.zip'
Content type 'application/zip' length 3813346 bytes (3.6 MB)
downloaded 3.6 MB

trying URL
'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/AlgDesign_1.1-
7.3.zip'
Content type 'application/zip' length 570356 bytes (556 KB)
downloaded 556 KB

trying URL
'http://cran.repo.bppt.go.id/bin/windows/contrib/3.3/agricolae_1.2-4.zip'
Content type 'application/zip' length 926931 bytes (905 KB)
downloaded 905 KB

package gdata successfully unpacked and MD5 sums checked


package combinat successfully unpacked and MD5 sums checked
package sp successfully unpacked and MD5 sums checked
package LearnBayes successfully unpacked and MD5 sums checked
package deldir successfully unpacked and MD5 sums checked
package coda successfully unpacked and MD5 sums checked
package gmodels successfully unpacked and MD5 sums checked
package klaR successfully unpacked and MD5 sums checked
package spdep successfully unpacked and MD5 sums checked
package AlgDesign successfully unpacked and MD5 sums checked
package agricolae successfully unpacked and MD5 sums checked

The downloaded binary packages are in


C:\Users\Axioo\AppData\Local\Temp\Rtmp6Lur8s\downloaded_packages
> library(agricolae)
> LSD <- LSD.test(model,"perlakuan", group=T);LSD
$statistics
Mean CV MSerror LSD
7.526071 7.456823 0.314952 0.833714

$parameters
Df ntr t.value alpha test name.t
18 7 2.100922 0.05 Fisher-LSD perlakuan

$means
respon std r LCL UCL Min Max
v1 6.8225 0.2417126 4 6.232975 7.412025 6.51 7.08
v2 7.0150 0.2670206 4 6.425475 7.604525 6.80 7.40
v3 9.7975 0.7215435 4 9.207975 10.387025 9.17 10.73
v4 7.4875 0.9372789 4 6.897975 8.077025 6.40 8.54
v5 6.8775 0.6743083 4 6.287975 7.467025 5.94 7.50
v6 7.9475 0.5206006 4 7.357975 8.537025 7.50 8.70
v7 6.7350 0.6066575 4 6.145475 7.324525 5.84 7.13

$comparison
NULL
$groups
trt means M
1 v3 9.7975 a
2 v6 7.9475 b
3 v4 7.4875 bc
4 v2 7.0150 c
5 v5 6.8775 c
6 v1 6.8225 c
7 v7 6.7350 c

>

Vous aimerez peut-être aussi