Learn R Programming

optR (version 1.2.5)

LU.optR: Solving system of equations using LU decomposition

Description

The function solves Ax=b using LU decomposition (LUx=b). The function handles multple responses

Usage

LU.optR(A, b, tol = 1e-07)

Arguments

A
: Input Matrix
b
: Response
tol
: tolerance

Value

U : Upper part of the triangele is (U) and Lower part of the triangular is L (Diagnoal for the L matrix is 1)c : Lc=b (where Ux=c)beta : Estimates

Examples

Run this code
A<-matrix(c(0,-1,1, -1,2,-1,2,-1,0), nrow=3,ncol=3, byrow = TRUE)
b<-matrix(c(0,0, 1), nrow=3,ncol=1,byrow=TRUE)
Z<-optR(A, b, method="LU")

Run the code above in your browser using DataLab