Function for computing the scaled ranks for each column of the input matrix.
In other words, the values are ranked column-wise and divided by
nrow(x) + 1. A "1334" ranking scheme is used where the lowest values
is awarded rank 1, second lowest value rank 2, and ties are given the
maximum available rank.
Usage
Uhat(x)
Arguments
x
A numeric matrix of observations to be ranked. Rows correspond to
features and columns to experiments.
Value
A matrix with the same dimensions as x of the scaled ranks.
Author(s)
Anders Ellern Bilgrau <anders.ellern.bilgrau@gmail.com>
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(GMCM)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/GMCM/Uhat.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Uhat
> ### Title: Fast ranking function
> ### Aliases: Uhat
>
> ### ** Examples
>
> data <- SimulateGMMData()
> par(mfrow = c(1,2))
> plot(data$z, xlab = expression(z[1]), ylab = expression(z[2]))
> plot(Uhat(data$z),
+ xlab = expression(hat(u)[1]),
+ ylab = expression(hat(u)[2]))
>
>
>
>
>
> dev.off()
null device
1
>