applyRAS: Integrate pre-adjustment of t_r, t_c and t (tolerance level)...

View source: R/UtilityFunctions.R

applyRASR Documentation

Integrate pre-adjustment of t_r, t_c and t (tolerance level) with RAS function.

Description

Integrate pre-adjustment of t_r, t_c and t (tolerance level) with RAS function.

Usage

applyRAS(m0, t_r, t_c, relative_diff, absolute_diff, max_itr)

Arguments

m0

A matrix object.

t_r

A vector setting the target row sums of the matrix.

t_c

A vector setting the target column sums of the matrix.

relative_diff

A numeric value setting the relative difference of the two numerical vectors.

absolute_diff

A numeric value setting the mean absolute difference of the two numerical vectors.

max_itr

A numeric value setting the maximum number of iterations to try for convergence. Default is 1,000,000.

Value

A RAS balanced matrix.


USEPA/useeior documentation built on April 12, 2024, 1:36 p.m.