fullRankMatrix
0.1.0Generation of Full Rank Design Matrix
Overview
Creates a full rank matrix out of a given matrix. The intended use is for one-hot encoded design matrices that should be used in linear models to ensure that significant associations can be correctly interpreted. However, 'fullRankMatrix' can be applied to any matrix to make it full rank. It removes columns with only 0's, merges duplicated columns and discovers linearly dependent columns and replaces them with linearly independent columns that span the space of the original columns. Columns are renamed to reflect those modifications. This results in a full rank matrix that can be used as a design matrix in linear models. The algorithm and some functions are inspired by Kuhn, M. (2008) doi:10.18637/jss.v028.i05.
Install
Health
- NOTE r-devel-linux-x86_64-debian-clang
- NOTE r-devel-linux-x86_64-debian-gcc
- NOTE r-devel-linux-x86_64-fedora-clang
- NOTE r-devel-linux-x86_64-fedora-gcc
- NOTE r-devel-windows-x86_64
- NOTE r-oldrel-macos-arm64
- NOTE r-oldrel-macos-x86_64
- NOTE r-oldrel-windows-x86_64
- NOTE r-patched-linux-x86_64
- NOTE r-release-linux-x86_64
- NOTE r-release-macos-arm64
- NOTE r-release-macos-x86_64
- NOTE r-release-windows-x86_64
- NOTE2026-06-090 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-080 OK · 12 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- NOTE2026-03-103 OK · 11 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
Repository practices
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/pweidemueller/fullrankmatrix on 2026-07-30.
Dependencies
Code & Tests
People & History
1 release. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.1.0Latest2026-03-10 · current release
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2024-06-28
- Total releases
- 1 / 2 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 1.4 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet