Learn R Programming

cati (version 0.8)

ses: Standardized effect size and confidence interval for a matrix of statistics

Description

Calcul standardized effect size and confidence interval for a matrix of statistics and the related null model expressed as a list or as an array. Internal function use by other functions of the package. You can transpose the observed matrix to represent either the SES by traits or by plots. Warnings, to detect automatically the correspondence between dimension of observed matrix and null model list or array, observed matrix needs to have different numbers of rows and columns.

Usage

ses(obs = NULL, nullmodel = NULL, val.quant = c(0.025, 0.975))

Arguments

obs
Observed matrix or vector of values.
nullmodel
Either a list or an array of three (two for a vector of observed values) dimensions corresponding to the null model permutations.
val.quant
Numeric vectors of length 2, giving the quantile to calcul confidence interval. By default val.quant=c(0.025,0.975) for a bilateral test with alpha = 5%.

Value

  • A list of three components:
  • $sesObserved value of standardized effect size.
  • $ses.infLower limit of the confidence interval.
  • $ses.supUpper limit of the confidence interval.

See Also

plot.listofindex; plot_ses.var; ses.listofindex

Examples

Run this code
data(finch.ind)
	
	res.finch<-Tstats(traits.finch, ind_plot=ind.plot.finch, 
	sp=sp.finch, nperm=9)
	
	ses(res.finch$T_IP.IC, res.finch$T_IP.IC_nm)
	
	ses(t(res.finch$T_IP.IC), res.finch$T_IP.IC_nm)

Run the code above in your browser using DataLab