Displaying 20 results from an estimated 26 matches for "ineq".
Did you mean:
inen
2010 Sep 03
7
Function Gini or Ineq
Hi listers,
Does it necessary to install any package in order to use the GINI or INEQ
functions.
If I use the following command the R tells me that didn't find the GINI
function.
x<-c(541, 1463, 2445, 3438, 4437, 5401, 6392, 8304, 11904, 22261)
G<-gini(x)
Thanks in advance,
Marcio
--
View this message in context: http://r.789695.n4.nabble.com/Function-Gini-or-Ineq-tp252...
2006 Dec 09
1
WinBUGS14 and R
...){
a[j] ~ dnorm (0, .0001)
b[j] ~ dnorm (b.hat, tau.b)
}
b.hat ~ dnorm (0, .0001)
tau.b <- pow(sigma.b, -2)
sigma.b ~ dnorm (0, 100)
tau.y <- pow(sigma.y, -2)
sigma.y ~ dunif (0, 100)
}
Here is my R code used to call BUGS:
y <- abs.4diff
n <- length(abs.4diff)
x <- log.ineq
uniq.name <- unique(country_name)
J <- length(uniq.name)
country <- rep (NA, J)
for (i in 1:J){
country[country_name==uniq.name[i]] <- i
}
ineq.bugs <- list ("n", "J", "y", "country", "x")
ineq.inits <- function (){
list(...
2004 Aug 12
0
updated package ineq 0.2-4
Dear useRs,
my last announcement is an update of the ineq package
for measuring inequality, concentration and poverty.
The current version is now 0.2-4.
Thanks to suggestions from Rein Halbersma the Pen()
function for plotting Pen's parade was improved and now
allows for much more flexibility. See the help page
for examples.
Best wishes,
Z
--------...
2004 Aug 12
0
updated package ineq 0.2-4
Dear useRs,
my last announcement is an update of the ineq package
for measuring inequality, concentration and poverty.
The current version is now 0.2-4.
Thanks to suggestions from Rein Halbersma the Pen()
function for plotting Pen's parade was improved and now
allows for much more flexibility. See the help page
for examples.
Best wishes,
Z
--------...
2008 Feb 11
1
Gini index of frequencies in a data frame
Dear All,
I wish to calculate the Gini index (ineq from same package) and some other indices for the diameter distribution of each plot (df dgtot).
dgtot:
IDPlot Diameter(cm)
1 4 34.0
2 4 23.0
3 4 38.0
...
51 5 16.0
52 5 8.0
53 5 9.0
...
5301 140 25.0
5302 140 12.0
5303 140 7.0
I us...
2004 Apr 27
1
constrOptim does ineq, not eq, but who do ?
Hi everybody,
please, could you give me help ? I scanned the help archives and didn't
found hints...
I want to solve a large sparse linear system subjected to an inequality
constrains (all solutions positive) and an equality constrain (all
solutions sum to 1), thus I tried to fool constrOptim using:
x[1] + 0 + ... + 0 >= 0
...
0 + 0 + ... + x[n] >= 0
x[1] + x[2] + ... + x[n] >= 1
-x[1] - x[2] - ... - x[n] >= -1
in minimization: min(...
2011 Nov 16
1
Theil decomposition
I came across the package 'ineq' that computes a variety of inequality measures (e.g. gini, theil etc). I want to compute the Theil index (racial segregation) and decompose the total into sub-components (by geog levels). I think the package doesn't report the decomposition (correct me if I'm wrong). Just wonder is tha...
2007 Apr 25
0
sorting data help
I am trying to create a 2x2xk contingency table. The variables are GDP and
an income inequality statistic with year being the k levels. I want to
eventually run a loglinear model with the data. Currently the data is
organized by either year or country. example
Country Year log(GDP) sqrt(INEQ)
1 1980 24 5.3
1 1981 25 5.45...
2007 Jun 11
1
Gini coefficient in R
If I use the Ineq library and the Gini function in this way:
>Gini(c(100,0,0,0))
I obtain the result 0.75 instead of 1 (that is the perfect inequality).
I think Gini's formula in Ineq is based on a formula as reported here:
http://mathworld.wolfram.com/GiniCoefficient.html
but in the case of perfect inequ...
2005 Feb 05
2
Std Err on Concentration measures
Hi,
I'm using the ineq package to calculate some concentration measures (Gini, Herfindal, ...) and I was wondering if there's around also a function to calculate standard error on these measures. If not, is anybody aware of where I can find a reference on this point?
Thanks.
--
=====================================...
2007 Jul 20
1
GEE code
...ction, I noticed
there's one intercept in the summary output. I assume this means the
function is pooling the data. That means my code is not what I want. I
want a "fixed effects" model, meaning I want the intercept to vary by
cluster. Here's my current code.
gfit4<-geeglm(ineq~GDP.log2,family=gaussian(link="identity"),data=data3,id=country,corstr="ar1")
summary(gfit4)
What do I need to include to get the function to compute a model where the
intercept varies by the country?
Thanks
-chris linton
[[alternative HTML version deleted]]
2005 Jun 24
2
Gini with frequencies
...ncome classes. The data I possess look loke this:
yit <- c(135, 164, 234, 369)
piit <- c(367, 884, 341, 74 )
where yit is the vector of income classes, and fit is the vector of associated frequencies.(This data is from Rustichini, Ichino and Checci (Journal of Public Economics, 1999) ). In ineq pacakge, Gini( ) doesn't seem to handle frequencies. On the other had, Lc() compute the Lorenz curve using these frequencies, but I don't manage to use its output to compute the Gini coefficient. I wonder if you have already writen some function to do this, or if you could shed some light h...
2001 Oct 11
2
Where's MVA?
...elds RmSQL Rstreams Rwave SASmixed SuppDists VR XML acepack adapt akima ash bindata blighty boot bootstrap bqtl car cclust cfa chron cluster cmprsk coda conf.design cramer date diamonds dse e1071 ellipse event.chart exactRankTests fastICA fdim fields foreign fracdiff gafit gee geoR gld gregmisc gss ineq leaps lgtdl lmtest locfit logspline lokern lpridge maptree maxstat mclust mda meanscore mgcv mlbench muhaz multiv mvnmle mvtnorm netCDF nlme nlrq norm odesolve oz panel pcurve permax pinktoe pixmap polymars polynom princurve pspline quadprog quantreg rmeta rpart rpvm scatterplot3d sem sgeostat sm s...
2008 Aug 19
2
Writing R Extensions : A new R package for Gini Index decomposition to prupose
Dear All,
I have developed a programme the anable the decomposition of the Gini index, it complets tha valuable work of Achim Zeileis, the author of the ineq package.
I would like to make it to be part of all R package. How should I proceed.
Must I sent it to the the Core developement team ?
The proogramme is written in R.
Many thanks for your advice,
Best regards,
Souleymane
_________________________________________________________________
Retouch...
2013 Dec 10
2
Multiple Lorenz curves in one diagram - populations with different "n"
Dear R users,
I'm using the "ineq" package to calculate the values of Gini and Lorenz coefficients and to and plot Lorenz graph.
I want to plot on the same diagram, curves from two different populations, that have different "n".
How can I do this?
Best regards,
Patricia
[[alternative HTML version deleted]]
2010 Oct 24
1
140 packages in R Commander!!
...line' 'gplots' 'maxLik' 'miscTools' 'sem' 'rgdal'
'network' 'numDeriv' 'statnet' 'rgenoud' 'hexbin' 'ellipse' 'gclus'
'mlbench' 'randomForest' 'SparseM' 'Formula' 'ineq' 'mlogit' 'np' 'plm'
'pscl' 'quantreg' 'ROCR' 'sampleSelection' 'scatterplot3d' 'systemfit'
'truncreg' 'urca' 'oz' 'fUtilities' 'fEcofin' 'RUnit' 'quadprog' 'itera...
2001 Mar 07
1
[?] update.packages() - Linux
...; "NA"
[2,] "ctest" "/usr/lib/R/library" "1.2.1" "base" "NA" ""
[3,] "eda" "/usr/lib/R/library" "1.2.1" "base" "NA" "NA"
[4,] "ineq" "/usr/lib/R/library" "0.1-2" "NA" "NA" "NA"
[5,] "KernSmooth" "/usr/lib/R/library" "2.22-4" "NA" "NA" "NA"
[6,] "lmtest" "/usr/lib/R/libr...
2001 Jan 10
1
gini index
Hi.
I have some data from a survey w/c include income data.
Was not quite sure how to generate the gini index on these
data.
Jose Ramon Albert
Statistical Research and Training Center
www.srtc.gov.ph
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info",
2016 Apr 01
0
Compute the Gini coefficient
...d to calculate
>
> cumul_hosts = cumsum(hosts)/sum(hosts)
> cumul_parasites = cumsum(hosts*parasites)/sum(parasites)
That's what I thought as well but Marine explicitly said that the 'host'
are _not_ weights. Hence I was confused what this would actually mean.
Using the "ineq" package you can also do
plot(Lc(parasites, hosts))
> The Lorenz curves starts at (0,0), so to draw it, you need to extend these vectors
>
> cumul_hosts = c(0,cumul_hosts)
> cumul_parasites = c(0,cumul_parasites)
>
> plot(cumul_hosts,cum9l_parasites,type=?l?)
>
>
>...
2010 Feb 16
1
R_LIBS_USER bugs
...ibrary:/develop/lnf/i386/R/LNFr-lmtest/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-sandwich/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-strucchange/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-zoo/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-dynlm/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-ineq/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-KernSmooth/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-np/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-plm/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-pscl/reloc/R-2.10/library:/develop/lnf/i386/R/LNFr-ROCR/reloc/R-2.10/library:/develop/lnf/i386/R/...