search for: gini

Displaying 20 results from an estimated 80 matches for "gini".

Did you mean: fini
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-In...
2016 Mar 30
2
Compute the Gini coefficient
Hello, I would like to build a Lorenz curve and calculate a Gini coefficient in order to find how much parasites does the top 20% most infected hosts support. Here is my data set: Number of parasites per host: parasites = c(0,1,2,3,4,5,6,7,8,9,10) Number of hosts associated with each number of parasites given above: hosts = c(18,20,28,19,16,10,3,1,0,0,0) To...
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 inequality: x_1=.......=x...
2011 Jun 13
1
In rpart, how is "improve" calculated? (in the "class" case)
...failed at resolving this myself, I'm sending this question to the list. I would appreciate any help in understanding how the rpart function is (exactly) computing the "improve" (which is given in fit$split), and how it differs when using the split='information' vs split='gini' parameters. According to the help in rpart.object: "improve, which is the improvement in deviance given by this split" >From what I understand, that would mean that the "improve" value should not be different when using different "split" switches. Since it is...
2003 Apr 24
5
Fast R implementation of Gini mean difference
I have written the following function to calculate the weighted mean difference for univariate data (see http://www.xycoon.com/gini_mean_difference.htm for a related formula). Unsurprisingly, the function is slow (compared to sd or mad) for long vectors. I wonder if there's a way to make the function faster, short of creating an external C function. Thanks very much for your advice. gmd <- function(x, w) { # x=data ve...
2005 Jun 24
2
Gini with frequencies
Hi there, I am trying to compute Gini coefficients for vectors containing income 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 (Jou...
2016 Apr 01
0
Compute the Gini coefficient
...ge frequency ? Thank you very much for your time. Have a nice day. Marine ________________________________________ De : Achim Zeileis <Achim.Zeileis at uibk.ac.at> Envoy? : mercredi 30 mars 2016 12:05 ? : Erich Neuwirth Cc : Marine Regis; r-help at r-project.org Objet : Re: [R] Compute the Gini coefficient On Wed, 30 Mar 2016, Erich Neuwirth wrote: > >> On 30 Mar 2016, at 02:53, Marine Regis <marine.regis at hotmail.fr> wrote: >> >> Hello, >> >> I would like to build a Lorenz curve and calculate a Gini coefficient in order to find how much parasite...
2011 Jun 21
0
How does rpart computes "improve" for split="information"?? (which seems to be different then the "gini" case)
...help members, I would appreciate any help in understanding how the rpart function computes the "improve" (which is given in fit$split) when using the split='information' parameter. Thanks to Professor Atkinson help, I was able to find how this is done in the case that split='gini'. By following the explanation here: http://mayoresearch.mayo.edu/mayo/research/biostat/upload/61.pdf But the calculation of the information (deviance) impurity is still a mystery for me. Might you help with explaining it? Bellow is some R code simply showing how the gini is computed (and ho...
2010 Sep 28
3
calcular la variancia de gini por bootstrap
Hola, paso el mini programita q estoy viendo, lo q me llama la atencion es una parte donde se definen las funciones. Probe primero meter adentro del boots la estadistica a estimar usando directamente gini(varible, pesos) pero no me dejo. Vi q en el ej del manual de boots, siempre define antes la funcion, entonces probe definir antes una funcion haciendo grini<-function(x) {gini(variable, peso)} pero tampoco me dejo. Entonces preste atencion q la funcion q definia en el ejmeplo tenia 2 parametro...
2009 Sep 28
1
how to visualize gini coefficient in each node in RF?
Dear all, I am working with randomForest package and I am interested in examining the "Gini importance" measures that are used as a general indicator of feature relevance. Is there a possibility of getting the Gini measure that is being estimated in each tree by the output of the getTree() function? Thanks a lot, Chrysanthi [[alternative HTML version deleted]]
2012 Oct 26
1
Gini with bias correction
Hey there, I was wondering if someone could tell me if there's a package or command that allows me to compute a GINI coefficient using a vector of weights. Also the coefficient should be bias corrected. Diego Rojas [[alternative HTML version deleted]]
2010 Oct 19
1
Gini Coefficient
Dear List, I am unsure if this is specifically a R question or a stats question? I thought i would ask here and if i get no replies it will answer that! I am trying to calculate Gini coefficients in R, based on a slight modification of the typical equation that i have seen in a paper. -------------- next part -------------- A non-text attachment was scrubbed... Name: PastedGraphic-2.pdf Type: application/pdf Size: 10407 bytes Desc: not available URL: <https://stat.ethz.ch...
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", "help", or...
2007 Jun 16
0
Use of the "by" command for gini()
I have a data set that contains income data and a group identifier. Sort of like: DATA Group,Income A,2300 B,6776 A,6668 A,6768 B,9879 C,5577 A,7867 (etc),(etc) I am trying to compute the gini coefficient for each group. I have tried the following and none seem to do the trick: 1) attach(DATA) by(DATA, group, function(x) gini(income)) 2) attach(data) tapply(income, group, function(x) gini(income)) Both of these return the same value for all groups. Like: group: A [1] 0.2422496...
2009 Sep 03
0
user defined udev rules
...change permissions of /dev/sda* and /dev/hda* files to 0644. I added the following rules to 99-udev.rules files: KERNEL=="[hs]d*", OWNER="root" GROUP="disk", MODE="0644 After restarting udev by strat_udev, I checked that permissions were changed: [root at gini rules.d]# ll /dev/sda* brw-r--r-- 1 root disk 8, 0 Sep 2 2009 /dev/sda brw-r--r-- 1 root disk 8, 1 Sep 2 13:55 /dev/sda1 brw-r--r-- 1 root disk 8, 2 Sep 2 13:55 /dev/sda2 brw-r--r-- 1 root disk 8, 3 Sep 2 2009 /dev/sda3 brw-r--r-- 1 root disk 8, 4 Sep 2 2009 /dev/sda4 brw-r--r-- 1 roo...
2009 May 21
1
Rpart - best split selection for class method and Gini splitting index
Dear R-users, I'm working with the Rpart package and trying to understand how the procedure select the best split in the case the method "class" and the splitting index "Gini" are used. In particular I'd like to have look to the source code that works out the best split for un unordered predictor. Does anyone can suggest me which functions in the sources I should consider ? Any input would be highly appreciated. Thank you Paolo Paolo Radaelli Dipartimento d...
2007 Jun 16
1
Use of the "by" command (clarification)
Well apparently this has nothing to do with the gini() command. I cannot get it to work for something as simple as sum() Here is the little example I am playing with, maybe someone can help me find my error: a<-c("A","B","C","A","B","C","A","A","C","B...
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 14...
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, Souley...
2012 Feb 20
1
random numbers
Hello, Is there a way to create random numbers that fit a certain specified requirement other than distributional characteristics. In particular, I would like to create simulated income distributions with certain gini coefficient Ryan -- Ryan Murphy 2012 B.A. Economics and Mathematics [[alternative HTML version deleted]]