Learn R Programming

LorenzRegression (version 2.2.0)

.frac_rank_cpp: Computes fractional ranks

Description

Computes the vector of fractional ranks related to a given vector

Usage

.frac_rank_cpp(x, pi)

Value

Fractional rank related to vector x

Arguments

x

vector of size n gathering the values for which the fractional rank should be computed

pi

vector of size n gathering the observation weights (notice that sum(pi)=1)