Description Usage Arguments Value Examples
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.
1 | GEST(distribution = "lognormal", m = 1000, n = 1000)
|
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 |
g.est the static of g.est
1 2 3 | GEST(distribution='lognormal',m=1e3,n=1e3)
GEST(distribution='uniform',m=1e3,n=1e3)
GEST(distribution='bernoulli',m=1e3,n=1e3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.