cov_center: Function to compute the Minimum Volume covariance Matrix of...

Description Usage Arguments Value

Description

Function to compute the covariance matrix, the niche centroid and volume of an ellipsoid model. It uses the values of the niche variables of the ocurrences points.

Usage

1
cov_center(data, mve = TRUE, level, vars = NULL)

Arguments

data

A data.frame or a matrix with the numeric values of the variables that will be used to model the niche.

mve

A logical value. If TRUE a minimum volume ellipsoid will be computed using the function cov.mve of the MASS package. If False the covariance matrix of the input data will be used.

level

A numerical value specifying the proportion of the data to be used to compute the ellipsoid.

vars

A numeric or a string vector specifying the columns indexes/names of the variables of the input data which will be used to fit the ellipsoid model. If NULL the user will be asked to enter the indexes. interactively

Value

Returns a list containing the centroid of the ellipsoid, the covariance matrix based on the input data, ellipsoid volume, semi-axis length and axis coordinates.


luismurao/hdm documentation built on May 24, 2019, 5:06 a.m.