# GEST: GEST__question 6.9(Statistical Computing with R) In zhengdat/StatComp18049: Homework of statistical computation

## Description

question 6.9(Statistical Computing with R):Let X be a non-negative random variable The Gini ratio is applied in economics to measure inequality in income distribution. Note that G can be written in terms of the order statistics x, if X is standard lognormal.Repeat the procedure for the uniform distribution and Bernoulli(0.1). Also construct density histograms of the replicates in each case.

## Usage

 `1` ```GEST(distribution = "lognormal", m = 1000, n = 1000) ```

## Arguments

 `distribution` it must be 'lognormal','uniform' or 'bernoulli',or Otherwise the program will report errors."The distribution function you entered is incorrect " `m` the length of random vector x `n` Number of repeated calculations

## Value

g.est the static of g.est

## Examples

 ```1 2 3``` ```GEST(distribution='lognormal',m=1e3,n=1e3) GEST(distribution='uniform',m=1e3,n=1e3) GEST(distribution='bernoulli',m=1e3,n=1e3) ```

zhengdat/StatComp18049 documentation built on May 29, 2019, 8:33 a.m.