Package: fullRankMatrix 0.1.0

Paula Weidemueller

fullRankMatrix:Generation of Full Rank Design Matrix

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>.

Authors:Paula Weidemueller [aut, cre, cph], Constantin Ahlmann-Eltze [aut]

fullRankMatrix_0.1.0.tar.gz
fullRankMatrix_0.1.0.tar.gz(r-4.5-noble)fullRankMatrix_0.1.0.tar.gz(r-4.4-noble)
fullRankMatrix_0.1.0.tgz(r-4.4-emscripten)fullRankMatrix_0.1.0.tgz(r-4.3-emscripten)
fullRankMatrix.pdf |fullRankMatrix.html
fullRankMatrix/json (API)
NEWS

# InstallfullRankMatrix in R:
install.packages('fullRankMatrix',repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/pweidemueller/fullrankmatrix/issues

4 exports 0.00 score 0 dependencies

Last updated 7 days agofrom:42c068dfa5

Exports:find_connected_componentsfind_linear_dependent_columnsmake_full_rank_matrixvalidate_column_names

Dependencies:

fullRankMatrix - Comparison to other packages

Rendered fromfullrankmat-comparison.Rmdusingknitr::rmarkdownon Jun 29 2024.

Last update: 2024-06-29
Started: 2024-06-29

fullRankMatrix - Generation of Full Rank Design Matrix

Rendered fromfullrankmat-example.Rmdusingknitr::rmarkdownon Jun 29 2024.

Last update: 2024-06-29
Started: 2024-06-29

Readme and manuals

Help Manual

Help pageTopics
Find connected components in a graphfind_connected_components
Find linear dependent columns in a design matrixfind_linear_dependent_columns
Create a full rank matrixmake_full_rank_matrix
Validate Column Namesvalidate_column_names