w_ratio: Compute outlier weights using ratios

Description Usage Arguments Value Author(s) See Also Examples

Description

Compute outlier weights using pre- and post-treatment count ratios.

Usage

1
w_ratio(preFEC, postFEC)

Arguments

postFEC

vector of post-treatment faecal egg counts

preFEC

vector of pre-treatment faecal egg counts

Value

The returned value is a list consists of

w

a vector of outlier weights

wmo

weighted mean of outliers

postmean

mean of post-treatment counts

Author(s)

Anja Fallegger
Craig Wang

See Also

fecr_stanExtra for using the model specification.

Examples

1
2
data(epgs)
w_ratio(epgs$before, epgs$after)

CraigWangUZH/eggCountsExtra documentation built on May 26, 2019, 7:23 a.m.