gini.m

来自「计量工具箱」· M 代码 · 共 15 行

M
15
字号
function [f,F,g,G,GINI]=gini(variable)
% PURPOSE: This function computes the Gini index and other related parameters for the Lorentz Curve
%------------------------------------------------------------------------
% USAGE: [f,F,f,G,GINI]=gini(variable)
%   where : variable = n x 1 vector of the variable to study
%------------------------------------------------------------------------
% OUTPUTS: f = (n x 1) vector of the frequencies of the sites whose value of variable is equal to Xk
%          F = (n x 1) vector of the frequencies of the sites whose value of variable is lower or equal to Xk
%          g = (n x 1) vector of the relative parts of the total weight of variable due to sites whose value is Xk
%          G = (n x 1) vector of the relative parts of the total weight of variable due to sites whose value is lower or equal to Xk
%          GINI = Gini index
%------------------------------------------------------------------------
% Christine Thomas-Agnan, Anne Ruiz-Gazen, Julien Moutel
% June 2003
% Universit

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?