mbr {mbRes}R Documentation

Compute Cliff's delta and S-value

Description

mbr summarizes Cliff's delta and S-value for multiple groups and multiple biomarkers.

Usage

mbr(df)

Arguments

df

a data frame with the name of experimental groups or biomonitoring sites as the first column and the measurement of biomarkers as the remaining columns.

Details

The header of the first column can be any character, for example, 'group' or 'site'. The first name appearing in the first column will determine the control group or the reference site. The other names will be treatment groups or test sites. The header of the remaining columns will define the list of biomarkers.

Value

mbr returns a list of length 3:

mess

a list of length 3 confirms the information about df.

es

a data frame with 9 columns:

test_site

treatment groups or test sites.

ref_site

control group or reference site.

t_size

the sample size of treatment group or test sites.

r_size

the sample size of control group or reference site.

biomarker

individual biomarker.

delta

the Cliff's delta of treatment group or reference site.

delta.abs

the absolute Cliff's delta.

pval

the P-Value.

sval

the surprisal or S-Value.

idx

a data frame summarizes delta.abs and their average.

Examples



set.seed(1)
setting <- setpop()
temp <- simul(setting$pop_mean)
mbr(temp$sam)
 #might take more than 5s in some machines


[Package mbRes version 0.1.7 Index]