https://github.com/bbuchsbaum/multivarious
https://github.com/bbuchsbaum/multivarious
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bbuchsbaum/multivarious
- Owner: bbuchsbaum
- License: other
- Created: 2020-12-14T13:34:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-11-20T22:18:12.000Z (3 months ago)
- Last Synced: 2025-11-21T00:08:08.312Z (3 months ago)
- Language: R
- Homepage: https://bbuchsbaum.github.io/multivarious/
- Size: 8.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# multivarious
[](https://app.codecov.io/gh/bbuchsbaum/multivarious?branch=master)
This package is intended to provide some basic abstractions and default implementations of basic computational infrastructure for multivariate component-based modeling such as principal components analysis.
The main idea is to model multivariate decompositions as involving projections from an input data space to a lower dimensional component space. This idea is encapsulated by the `projector` class and the `project` function. Support for two-way mapping (row projection and column projection) is provided by the derived class `bi-projector`. Generic functions for common operations are included:
- `project` for mapping from input space into (usually) reduced-dimensional output space
- `partial_project` for mapping a subset of input space into output space
- `project_vars` for mapping new variables ("supplementary variables") to output space
- `reconstruct` for reconstructing input data from its low-dimensional representation
- `residuals` for extracting residuals of a fit with `n` components.
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("bbuchsbaum/multivarious")
```
## Example
This is a basic example which shows you how to solve a common problem:
```{r example}
library(multivarious)
## basic example code
```
## Albers theme
This package uses the albersdown theme. Vignettes are styled with `vignettes/albers.css` and a local `vignettes/albers.js`; the palette family is provided via `params$family` (default 'red'). The pkgdown site uses `template: { package: albersdown }`.