Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regularization of covariance matrix by winsorizing the eigenvalues #292

Open
wants to merge 1 commit into
base: bugfix
Choose a base branch
from

Conversation

FarnazFouladi
Copy link

This commit includes regularization of covariance matrix. The function "regularize_eigenvalues" was added to utils.R This function winsorizes very small eigenvalues to a value between 0.1-1. This value is chosen based on the ratio of eigenvalues to the largest eigenvalue. Using this function, the covariance matrix is regularized at lines 80-104 of the script sparse_linear.R. The regularized covariance matrix is returned as a stand-alone output and is included in the list of outputs at line 157.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant