Learn R Programming

indirect (version 0.2.1)

CNdiag: Function to check condition number diagnostic.

Description

This function calculates the condition number of the rescaled \(n x p\) design matrix \(X\) such that each column has unit length.

Usage

CNdiag(X)

Arguments

X

Design matrix

Value

a scalar giving the condition number of the rescaled design matrix

Examples

Run this code
# NOT RUN {
X <- matrix(rnorm(16), nrow = 4)
CNdiag(X)
# }

Run the code above in your browser using DataLab