nplstoolbox

Creation and selection of N-way Partial Least Squares (NPLS) models

https://github.com/grvanderploeg/nplstoolbox

Science Score: 39.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.9%) to scientific vocabulary

Keywords

dimensionality-reduction multiway multiway-algorithms nway partial-least-squares
Last synced: 6 months ago · JSON representation

Repository

Creation and selection of N-way Partial Least Squares (NPLS) models

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
dimensionality-reduction multiway multiway-algorithms nway partial-least-squares
Created 12 months ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# NPLStoolbox 



[![R-CMD-check](https://github.com/GRvanderPloeg/NPLStoolbox/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/GRvanderPloeg/NPLStoolbox/actions/workflows/R-CMD-check.yaml) [![Codecov test coverage](https://codecov.io/gh/GRvanderPloeg/NPLStoolbox/graph/badge.svg)](https://app.codecov.io/gh/GRvanderPloeg/NPLStoolbox) ![CRAN/METACRAN Version](https://img.shields.io/cran/v/NPLStoolbox) ![GitHub Release](https://img.shields.io/github/v/release/GRvanderPloeg/NPLStoolbox) ![GitHub R package version](https://img.shields.io/github/r-package/v/GRvanderPloeg/NPLStoolbox)



## Overview

The `NPLStoolbox` allows researchers to use the N-way Partial Least Squares method for their multi-way data.

-   `ncrossreg()` allows the user to identify the appropriate number of NPLS components for their data.
-   `triPLS1()` allows the user to create an NPLS model.
-   `npred()` allows the user to predict y for new data.

This package also comes with two example datasets:

-   `Cornejo2025`: a clinical observational cohort study of 39 transgender persons starting gender-affirming hormone therapy, containing longitudinally measured tongue microbiome, salivary microbiome, salivary cytokine, salivary biochemistry, and circulatory hormone levels (doi TBD).
-   `Jakobsen2025`: an observational cohort of 169 mother-infant dyads investigating the effect of maternal obesity on human milk and the infant gut microbiome .

## Documentation

A basic introduction to the package using the example dataset is given in `vignette("Introduction")`.

This vignette and all function documentation can be found [here](https://grvanderploeg.com/NPLStoolbox/).

## Installation

The `NPLStoolbox` package can be installed from CRAN using:

``` r
install.packages("NPLStoolbox")
```

## Development version

You can install the development version of NPLStoolbox from [GitHub](https://github.com/) with:

``` r
# install.packages("pak")
pak::pak("GRvanderPloeg/NPLStoolbox")
```

## Usage

```{r usage}
library(parafac4microbiome)
library(NPLStoolbox)
set.seed(123)

# Process one of the data cubes from Cornejo2025
processedTongue = processDataCube(Cornejo2025$Tongue_microbiome, sparsityThreshold=0.5, considerGroups=TRUE, groupVariable="GenderID", centerMode=1, scaleMode=2)

# Prepare Y: binarized gender identity
Y = as.numeric(as.factor(Cornejo2025$Tongue_microbiome$mode1$GenderID))
Ycnt = Y - mean(Y)

# Make a one-component NPLS model
model = triPLS1(processedTongue$data, Ycnt, 1)
```

## Getting help

If you encounter an unexpected error or a clear bug, please file an issue with a minimal reproducible example here on [Github](https://github.com/GRvanderPloeg/NPLStoolbox/issues). For questions or other types of feedback, feel free to send an email.

Owner

  • Login: GRvanderPloeg
  • Kind: user

GitHub Events

Total
  • Create event: 3
  • Release event: 1
  • Issues event: 1
  • Push event: 38
  • Fork event: 1
Last Year
  • Create event: 3
  • Release event: 1
  • Issues event: 1
  • Push event: 38
  • Fork event: 1

Packages

  • Total packages: 1
  • Total downloads:
    • cran 277 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: NPLStoolbox

N-Way Partial Least Squares Modelling of Multi-Way Data

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 277 Last month
Rankings
Dependent packages count: 26.3%
Forks count: 29.1%
Dependent repos count: 32.4%
Stargazers count: 37.4%
Average: 42.3%
Downloads: 86.6%
Maintainers (1)
Last synced: 6 months ago