stab.mean {genstab}R Documentation

Group means and ranks with resampling

Description

Group mean and rank calculation with two resampling techniques:permuation and bootstraping

Usage

stab.mean(Y, class, cls2 = NULL, resample, times = NULL, alpha = NULL)

Arguments

Y

A matrix including One or more traits

class

A vector of the first factor for calculating variance. For example, a vector of genotypes.

cls2

A vector of the second factor used within-group bootstraping for variance. It can be default

resample

Resampling technique option. resample="Boot" is for bootstrapping. resample="Perm" is for permutation.

times

Number of resampling used. The default number is 1000.

alpha

A nomimal probability used for statistical test. The default value is 0.05.

Value

A list of variances and confidence intervals for genotypes or environments

Author(s)

Jixiang Wu <jixiang.wu@sdstate.edu>

References

Finlay, K.W., G.N. Wilkinson 1963. The analysis of adaptation in a plant breeding programme. Australian Journal of Agricultural Research 14: 742-754.

Wu, J., K. Glover, W. Berzonsky, 2012. Statistical tests for stability analysis with resampling techniques. 25th Conference of Applied Statistics in Agriculture. p88-108. April 29- May 01, 2012. Manhattan, KS

Examples

data(maize)
#names(maize)
Geno=as.vector(maize$Cultivar)
Env=paste(maize$Location,maize$Year,sep=":")
y=maize$Yld
res=stab.mean(y,class=Geno,cls2=Env,resample="Boot",times=100)
res
res=stab.mean(y,class=Geno,resample="Perm",times=100)
res

[Package genstab version 1.0.0 Index]