get_cox_qr_solve: Solve Linear System using QR Decomposition

get_cox_qr_solveR Documentation

Solve Linear System using QR Decomposition

Description

This function solves the linear system defined by hessian_matrix and gradient_vector using QR decomposition. Any NA values in the resulting solution vector are replaced with 0.0001. If there is an error during the solution process, a vector of default values (0.0001) is returned instead.

Usage

get_cox_qr_solve(hessian_matrix, gradient_vector)

Arguments

hessian_matrix

A matrix of coefficients representing the system of linear equations.

gradient_vector

A numeric vector representing the constants in the linear system.

Value

A numeric vector representing the solution to the linear system. NA values in the solution are replaced with a small value (0.0001). If an error occurs during solving, a vector of default values (0.0001) is returned.


catalytic documentation built on April 4, 2025, 5:51 a.m.