Learn R Programming

aspi (version 0.2.0)

eb.test: Exact binomial tests

Description

Assess symmetry of parasitic infections by performing exact binomial tests on pooled data and individual hosts.

Usage

eb.test(x)

Arguments

x
a matrix or data frame with two numeric columns; first column is for left-side and 2nd column for right-side. Identifiers for hosts can be provided as row names.

Value

It returns a list containing two elements:

Details

This function performs a binomial exact tests with the null hypothesis of a 1:1 ratio. It takes as its argument a matrix or data frame with two numeric columns; first column is for left-side and 2nd column for right-side. Identifiers for hosts can be provided as row names. Uninfected hosts (zero count for both left and right sides) are ignored.

Examples

Run this code
eb.test(diplostomum_lenses)

Run the code above in your browser using DataLab