Skip to main content
U.S. flag

An official website of the United States government

Here’s how you know

Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

HTTPS

Secure .gov websites use HTTPS
A lock (LockA locked padlock) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

    • Environmental Topics
    • Air
    • Bed Bugs
    • Cancer
    • Chemicals, Toxics, and Pesticide
    • Emergency Response
    • Environmental Information by Location
    • Health
    • Land, Waste, and Cleanup
    • Lead
    • Mold
    • Radon
    • Research
    • Science Topics
    • Water Topics
    • A-Z Topic Index
    • Laws & Regulations
    • By Business Sector
    • By Topic
    • Compliance
    • Enforcement
    • Laws and Executive Orders
    • Regulations
    • Report a Violation
    • Environmental Violations
    • Fraud, Waste or Abuse
    • About EPA
    • Our Mission and What We Do
    • Headquarters Offices
    • Regional Offices
    • Labs and Research Centers
    • Planning, Budget, and Results
    • Organization Chart
    • EPA History

Breadcrumb

  1. Home
  2. Causal Analysis/Diagnosis Decision Information System (CADDIS)

Using Taxon-Environment Relationships: Compute Biological Inferences

  • Introduction
  • Using Taxon-Environment Relationships
  • Estimating Taxon-Environment Relationships
  • Computing Inferences
  • R Scripts

Compute Biological Inferences

Helpful Links
Topics In Using Taxon-Environment Relationships
  • Overview
  • Download Files and Set Up R
  • Standardize Taxonomy
  • Assign Operational Taxonomic Units (OTUs)
  • Compute Biological Inferences

PECBO Appendix Site Map

Biological inferences based on Operational Taxonomic Units (OTUs) are computed using a maximum likelihood approach.  More information and approaches can be found on the Computing Inferences Tab (above).

Instructions for computing inferences with existing OTUs:

  1. Check that you have loaded the biological inference library and a taxon-environment coefficient file.

    To load the biological inference library, type at the R prompt:

    library(bio.infer)

    A file starting with coef (e.g., coef.west.wt) should have been loaded when you set up your workspace (see Step 6 on the Download Files page).

    You should also have run get.otu and saved the results in a data frame (e.g., bcnt.otu).
     
  2. Run the R script that generates a site-OTU matrix. Type at the R prompt:

    ss <- makess(bcnt.otu)

    This command runs the R script makess and stores the resulting site-OTU matrix in the data frame ss. The only input to the script is bcnt.otu, a benthic count file with OTUs assigned (i.e., the output from get.otu).
     
  3. Run the R script that computes inferences.

    Type at the R prompt:

    inferences <- mlsolve(ss, coef.west.wt)

    The script mlsolve solves the maximum likelihood inference that provides the most probable environmental conditions at the site, given biological assemblage composition at the site and given taxon-environment relationships. Two inputs to the script are required: the site-OTU matrix generated by the previous step (e.g., ss) and the taxon-environment data file (e.g., coef.west.wt).

    Inferences for each sample in the data set are stored in the data frame inferences.
     
  4. Interpret inference results.

    The inference data frame will have a column with the site identifier, columns for each of the inferred environmental variables, and a column labeled "Inconsistent". Sites at which Inconsistent is TRUE are sites in which the solution algorithm did not converge to a single solution. These sites typically do not have enough taxa to confidently infer environmental conditions, so inferences at these sites should be used with caution.

    Inferences provide an estimate of the environmental conditions at a site. This estimate is comparable to a direct environmental measurement and can be analyzed in a similar way to help inform a causal analysis. In particular, environmental inferences must be compared with inferences at reference sites to establish whether or not the conditions at the site have departed from natural expectations.

Causal Analysis/Diagnosis Decision Information System (CADDIS)

  • CADDIS Home
    • About CADDIS
    • Frequent Questions
    • Publications
    • Recent Additions
    • Related Links
    • CADDIS Glossary
  • Volume 1: Stressor Identification
    • About Causal Assessment
    • Getting Started
    • Step 1. Define the Case
    • Step 2. List Candidate Causes
    • Step 3. Evaluate Data from the Case
    • Step 4. Evaluate Data from Elsewhere
    • Step 5. Identify Probable Causes
  • Volume 2: Sources, Stressors and Responses
    • About Sources
      • Urbanization
    • About Stressors
  • Volume 3: Examples and Applications
    • Analytical Examples
    • Worksheet Examples
    • State Examples
    • Case Studies
    • Galleries
  • Volume 4: Data Analysis
    • Selecting an Analysis Approach
    • Getting Started
    • Basic Principles & Issues
    • Exploratory Data Analysis
    • Basic Analyses
    • Advanced Analyses
    • PECBO Appendix
    • Download Software
    • Data Analysis Topics (A -Z)
  • Volume 5: Causal Databases
    • Learn about CADLink
Contact Us about CADDIS
Contact Us to ask a question, provide feedback, or report a problem.
Last updated on February 7, 2025
  • Assistance
  • Spanish
  • Arabic
  • Chinese (simplified)
  • Chinese (traditional)
  • French
  • Haitian Creole
  • Korean
  • Portuguese
  • Russian
  • Tagalog
  • Vietnamese
United States Environmental Protection Agency

Discover.

  • Accessibility Statement
  • Budget & Performance
  • Contracting
  • EPA www Web Snapshot
  • Grants
  • No FEAR Act Data
  • Plain Writing
  • Privacy
  • Privacy and Security Notice

Connect.

  • Data
  • Inspector General
  • Jobs
  • Newsroom
  • Regulations.gov
  • Subscribe
  • USA.gov
  • White House

Ask.

  • Contact EPA
  • EPA Disclaimers
  • Hotlines
  • FOIA Requests
  • Frequent Questions
  • Site Feedback

Follow.