View source: R/CalculationFunctions.R
RAS | R Documentation |
Generalized RAS procedure. Takes an initial matrix, a target row sum vector and target colsum vector. Iterates until all row sums of matrix equal to target row sum vector and colsums of matrix equal target col sum vector, within a tolerance.
RAS(m0, t_r, t_c, t, max_itr = 1e+06)
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. |
t |
A numeric value setting the tolerance of RAS. |
max_itr |
A numeric value setting the maximum number of iterations to try for convergence. Defualt: 1000000. |
A RAS balanced matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.