Learn R Programming

sfcr (version 0.2.1)

.sfcr_newton: Newton-Raphson solver implemented with rootSolve::multiroot()

Description

Newton-Raphson solver implemented with rootSolve::multiroot()

Usage

.sfcr_newton(m, equations, periods, max_ite, tol, ...)

Arguments

m

The initialized matrix obtained with .make_matrix().

equations

Prepared equations with .prep_equations().

periods

Total number of rows (periods) in the model.

max_ite

Maximum number of iterations allowed per block per period.

tol

Tolerance accepted to determine convergence.

...

Extra parameters to pass to rootSolve::multiroot().

Details

This function implements the Newton-Raphson method to solve the cyclical blocks of equations. It relies on the multiroot() function from rootSolve.