Learn R Programming

FactorCopulaModel (version 0.1.1)

posDefHessMin: Minimization with modified Newton-Raphson iterations, Hessian is modified to be positive definite at each step. Algorithm and code produced by Pavel Krupskii (2013) see PhD thesis Krupskii (2014), UBC and Section 6.2 of # Joe (2014) Dependence Models with Copulas. Chapman&Hall/CRC

Description

modified Newton-Raphson minimization with positive Hessian

Usage

posDefHessMin(param,objfn,dstruct,LB,UB,mxiter=30,eps=1.e-6,bdd=5,iprint=FALSE)

Value

list withfnval = function value at minimum; parmin = param for minimum; invh = inverse Hessian; iconv = 1 if converged, -1 for a boundary point, 0 otherwise; iter = number of iterations.

Arguments

param

starting point for minimization

objfn

function to be minimized with gradient and Hessian

dstruct

list with data set and other variables used by objfn

LB

lower bound vector

UB

upper bound vector

mxiter

max number of iterations

eps

tolerance for Newton-Raphson iterations

bdd

bound on difference of 2 consecutive iterations (useful is starting point is far from solution and func is far from convex)

iprint

control on amount of printing, FALSE for no printing of iterations and TRUE for printing x^(k) on each iteration.

Examples

Run this code
# See examples in onefactorcop_nllk(), bifactorcop_nllk(), nestfactorcop_nllk()

Run the code above in your browser using DataLab