Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Ginv

G inverse


Description

Calculates the g-inverse of a squared matrix using the eigen decomposition and removing the eigenvalues smaller than a tolerance.

Usage

Ginv(X, tol = sqrt(.Machine$double.eps))

Arguments

X

Matrix to calculate the g-inverse.

tol

Tolerance.

Details

The function is useful to avoid singularities.

Value

Returns the g-inverse.

Author(s)

Jose Luis Vicente-Villardon

Examples

data(iris)
x=as.matrix(iris[,1:4])
S= t(x) 
Ginv(S)

PERMANOVA

Multivariate Analysis of Variance Based on Distances and Permutations

v0.1.0
GPL (>= 2)
Authors
Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.