Description Usage Arguments Details Value Author(s) See Also Examples
NOTE: This is a Test-version and is not sufficiently checked for correctness so far. Simultaneous confidence intervals for differences and ratios of Simpsons indices of diversity are calculated from data sets with repeated samples of communities and designs with more than two treatments groups. The intervals are calculated based on a stratified, non-parametric ordinary bootstrap sample of Simpsonindices, and applying the Algorithm of Besag et al.(1995) on the joint empirical distribution of differences (BOOTSimpsonD) or ratios (BOOTSimpsonR) of the original distribution.
1 2 3 4 5 |
X |
a data.frame of dimension n times p, containing integer entries as species counts of p species from n independent samplings |
f |
a factor, usually with more than two levels. Must be of length n, when X is an n times p matrix |
type |
a single character string, defining a contrast type. Supported options are 'Dunnett','Tukey','Sequen'; for more options, see |
cmat |
user defined contrasts:
when using |
conf.level |
a single numeric value between 0.5 and 1 |
alternative |
a single character string, one of 'two.sided','less' and 'greater' |
madj |
a single logical value, indicating whether simultaneous (if |
... |
Further arguments to be passed to the function |
NOTE: This is a test version!
If madj=TRUE
, an object of class "SCSnp", see SCSnp
for details.
If madj=FALSE
, an object of class "CInp", see CInp
for details.
Frank Schaarschmidt
SCSnp
,
these function internally make use of CCDiff.boot
, CCDiff.default
,
CCRatio.boot
, CCRatio.default
,
boot
and estSimpsonf
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | X<-t(rmultinom(n=40,size=100,
prob=c(0.3,0.2,0.2,0.1,0.1,0.05,0.05)))
colnames(X)<-paste("Sp",1:7,sep="")
DAT<-as.data.frame(X)
f<-as.factor(rep(c("A","B","C","D"),each=10))
SCIdunnettd<-BOOTSimpsonD(X=DAT, f=f, type = "Dunnett",
conf.level = 0.95, alternative = "two.sided", R=500)
# with small no of bootstraps for illustration
SCIdunnettd
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.