or.glm: Odds ratio calculation using regression

Description Usage Arguments Value

Description

Calculates asymmetric odds ratio using logistic regression.

Usage

1
or.glm(dataset, complex)

Arguments

dataset

Two column data.frame containing species occurrence. Note that first column is species A and second species B, where A is the species subject to investigation (i.e. does the presence of B affect A?)

complex

logical, defaulting to FALSE. If true, or.glmer returns details of the model (slope and intercept) used to calculate each odds ratio, and the proportion of rows at which species B is present, as well as the odds ratio. Note that this may lead to incompatability with summary or plot methods as currently implemented - only recmomended for evaluation purposes.

Value

odds ratio between two species


mjwestgate/sppairs documentation built on May 23, 2019, 1:05 a.m.