-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e18d15
commit ca8d167
Showing
27 changed files
with
357 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
Package: agricolae | ||
Type: Package | ||
Title: Statistical Procedures for Agricultural Research | ||
Version: 1.0-7 | ||
Date: 2009-4-20 | ||
Version: 1.0-8 | ||
Date: 2009-12-01 | ||
Author: Felipe de Mendiburu | ||
Maintainer: Felipe de Mendiburu <f.mendiburu@cgiar.org> | ||
Suggests: akima, klaR, SuppDists, corpcor | ||
Description: Agricolae is a project in order to obtain the degree of | ||
master in Systems Engineering in the National University of | ||
Engineering in Lima-Peru (UNI in Spanish). These functions are | ||
currently utilized by the International Potato Center Research | ||
(CIP), the Universidad Nacional Agraria La Molina (UNALM-PERU), | ||
and the Instituto Nacional de Investigacion Agricola | ||
Suggests: akima, klaR, MASS | ||
Description: Agricolae was presented on 28 August 2009 in the thesis "A | ||
statistical analysis tool for agricultural research" to obtain | ||
the degree of Master on science, mention Systems Engineering, | ||
of the facultad de ingenieria industrial y de sistemas - | ||
Universidad Nacional de Ingenieria, Lima-Peru (UNI), being | ||
approved with the qualification of 18.14 in a scale from 0 to | ||
20. The thesis includes a satisfaction survey of the library, | ||
with an index quality of the software of 0.8 in scale of 0-1. | ||
These functions are currently used by the International Potato | ||
Center (CIP), the Universidad Nacional Agraria La Molina | ||
(UNALM-PERU), and the Instituto Nacional de Innovacion Agraria | ||
(INIA-PERU). It comprises the functionality of statistical | ||
analysis into experimental designs applied specially for field | ||
analysis into experimental designs applied specially in field | ||
experiments in agriculture and plant breeding: Lattice, | ||
factorial, complete and incomplete block, Latin Square, Greaco, | ||
Alpha designs, Cyclic designs, comparison of multi-location | ||
trials, comparison between treatments, resampling, simulation, | ||
biodiversity indexes and consensus cluster. | ||
factorial, complete and incomplete block, Latin Square, Graeco, | ||
Alpha designs, Cyclic, split and strip plot designs, comparison | ||
of multi-location trials, comparison between treatments, | ||
resampling, simulation, biodiversity indexes and consensus | ||
cluster. | ||
License: GPL | ||
URL: http://tarwi.lamolina.edu.pe/~fmendiburu | ||
Packaged: 2009-04-20 13:52:25 UTC; fdemendiburu | ||
Packaged: 2009-12-01 16:41:30 UTC; fdemendiburu | ||
Repository: CRAN | ||
Date/Publication: 2009-04-20 17:21:12 | ||
Date/Publication: 2009-12-01 17:35:22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
`design.dau` <- | ||
function (trt1, trt2, r,number=1,seed=0,kinds="Super-Duper",name="trt") | ||
{ | ||
ntr1 <- length(trt1) | ||
if(seed != 0) set.seed(seed,kinds) | ||
mtr1 <- sample(trt1, ntr1, replace = FALSE) | ||
block <- c(rep(1, ntr1)) | ||
for (y in 2:r) { | ||
block <- c(block, rep(y, ntr1)) | ||
mtr1 <- c(mtr1, sample(trt1, ntr1, replace = FALSE)) | ||
} | ||
ntr2 <- length(trt2) | ||
mtr2 <- sample(trt2,ntr2, replace = FALSE) | ||
s<-s<-1:ntr2%%r | ||
for(i in 1:ntr2) if(s[i]==0)s[i]<-r | ||
block <- c(block, s) | ||
mtr <- c(mtr1,mtr2) | ||
plots <- number+1:(ntr1*r + ntr2)-1 | ||
|
||
book<-data.frame(block=as.factor(block),trt=as.factor(mtr)) | ||
book<-book[order(book[,1]),] | ||
for (i in 1:r) | ||
book[book[,1]==i,2]<-sample(book[book[,1]==i,2],length(book[book[,1]==i,2])) | ||
book<-data.frame(plots,book) | ||
rownames(book)=1:nrow(book) | ||
names(book)[3]<-name | ||
return(book) } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
design.split<-function (trt1, trt2,r=NULL, design=c("rcbd","crd","lsd"),number = 1, seed = 0, kinds = "Super-Duper") | ||
{ | ||
n1<-length(trt1) | ||
n2<-length(trt2) | ||
if (seed != 0) | ||
set.seed(seed, kinds) | ||
design <- match.arg(design) | ||
if (design == "crd") { | ||
book<-design.crd(trt1,r,number, seed, kinds) | ||
k<-3 | ||
} | ||
if (design == "rcbd"){ | ||
book<-design.rcbd(trt1,r,number, seed, kinds) | ||
k<-3 | ||
} | ||
if (design == "lsd") { | ||
book<-design.lsd(trt1,number, seed, kinds) | ||
r<-n1 | ||
k<-4 | ||
} | ||
nplot<-nrow(book) | ||
d<-NULL | ||
for(i in 1:nplot)d<-rbind(d,sample(trt2,n2)) | ||
aa<-data.frame(book,trt2=d[,1]) | ||
for(j in 2:n2) aa<-rbind(aa,data.frame(book,trt2=d[,j])) | ||
aa<-aa[order(aa[,1]),] | ||
book <- aa | ||
rownames(book)<-1:(nrow(book)) | ||
names(book)[k] <- c(paste(deparse(substitute(trt1)))) | ||
names(book)[k+1] <- c(paste(deparse(substitute(trt2)))) | ||
return(book) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
design.strip<-function (trt1, trt2,r, number = 1, seed = 0, kinds = "Super-Duper") | ||
{ | ||
n1<-length(trt1) | ||
n2<-length(trt2) | ||
if (seed != 0) | ||
set.seed(seed, kinds) | ||
a<-sample(trt1,n1) | ||
b<-sample(trt2,n2) | ||
fila<-rep(b,n1) | ||
columna <- a[gl(n1,n2)] | ||
block <- rep(1,n1*n2) | ||
if (r > 1) { | ||
for (i in 2:r) { | ||
a<-sample(trt1,n1) | ||
b<-sample(trt2,n2) | ||
fila<-c(fila,rep(b,n1)) | ||
columna <- c(columna,a[gl(n1,n2)]) | ||
block <- c(block,rep(i,n1*n2)) | ||
}} | ||
plots <- number + 1:(n1*n2 * r) - 1 | ||
book <- data.frame(plots, block = as.factor(block), row = as.factor(fila), column=as.factor(columna)) | ||
names(book)[3] <- c(paste(deparse(substitute(trt1)))) | ||
names(book)[4] <- c(paste(deparse(substitute(trt2)))) | ||
return(book) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.