makepd {hapsim}R Documentation

Makes a matrix positive definite

Description

Modifies a matrix so that it is positive definite

Usage

makepd(mat, eig.tol = 1e-06)

Arguments

mat Matrix
eig.tol Tolerance value

Value

A positive-definite matrix


[Package hapsim version 0.2 Index]