logratio_without_alpha: Perform log-ratio transformation without alpha parameter

View source: R/1a-propr-backend.R

logratio_without_alphaR Documentation

Perform log-ratio transformation without alpha parameter

Description

This function applies a log-ratio transformation to a given data matrix without using an alpha parameter. The log-ratio transformation is based on a selected subset of columns specified by the 'use' argument.

Usage

logratio_without_alpha(ct, use)

Arguments

ct

A data matrix for which the log-ratio transformation will be performed. It is assumed that the matrix contains numerical values only.

use

An integer vector specifying the subset of columns to be used for the log-ratio transformation.

Value

A matrix containing the log-ratio transformed data.

Examples

# Sample input data
data <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 2, byrow = TRUE)

# Applying log-ratio transformation to rows using columns 2 and 3
result <- logratio_without_alpha(data, use = c(2, 3))


tpq/propr documentation built on April 21, 2024, 12:50 p.m.