bio_model: Fit a generalized linear model

Description Usage Arguments Value Author(s)

Description

This fits a linear model with the form of Indicador ~ Ano + Zona + Post * Zona + Temperatura + Visibilidad + Profundidad to the data. Depending on the specified covars, Temperature, Visibility and Depth can be dropped from the model. Use define_covars to identify which covariates to keep or specify them manually.

Usage

1
bio_model(data, covars = c("Temperatura", "Visibilidad", "Profundidad"))

Arguments

data

A data.frame containing at least the columns for Indicador, Ano, Zona, Post, Temperature, Visibility, and Profundidad. The indicator can be any of the biophysical indicators generated by shannon(), density(), fish_biomass(), trophic(), fish_size()

covars

a character vector specifying which covariates to keep. Options are Temperatura, Profundidad, Visibilidad or None (to drop all covariates).

Value

An object of class lm containing the fitted model

Author(s)

VillaseƱor-Derbez, J.C. <jvillasenor@turfeffect.org>


turfeffect/MPAtools documentation built on June 1, 2019, 2:55 a.m.