chpDmat: Derivative matrix

Description Usage Arguments Value

View source: R/CHP.R

Description

This function organizes the first and second derivatives of the log Likelihoood.

Usage

1
chpDmat(Mdl, var_switch = 1)

Arguments

Mdl

is a list containing AR model components Specifically, it containg y, x, X (x plus constant), residuals, coefficients, stdev, logLike

var_switch

is an indicator = 1 if there is a switch in both Mean and Variance and = 0 if there is only a switch in the Mean. Less Second-Order dervatives are calculated if only the Mean is subject to regime switch.

Value

List containing relevant first and second derivatves of log likelihood function.


roga11/MSTest_v1 documentation built on Dec. 22, 2021, 5:16 p.m.