Boa tarde pessoal, estou tentando calcular o índice de gini para alguns setores da economia, identificados de 1 a 5. Busquei em alguns fóruns e no youtube também, mas vi que o pessoal usa por exemplo o comando:inequal var
Em outro fórum um senhor informou que é possível através de: ineqdeco var [fw=weight], by(subgroup)
Como sou iniciante no mundo do stata, não entendi muito bem o que é pra ser colocado dentro dos [ ...] . Mas enfim, a questão é que fazendo da primeira forma mostrada ali em cima, ele mostra o coeficiente, porém, preciso criar uma variável que receba esses coeficientes, eu tentei fazer da seguinte maneira:
by setor: gen ind_gini = ineqdeco renda
Porém, não deu certo, alguém pode sugerir uma solução? Muito obrigado.
Related Posts with Calculando o coeficiente de Gini
Formal tests of volatility in STATA17Dear Statlist: I have longitudinal data on employee data across multiple years and organizations. I…
Color changes with PNG export.On the left, we have the graph I actually want (ignore please the slight transparency difference bet…
Generating the "opposing" variable in a long datasetHi all, I am using Stata 17/SE on Mac and I am having trouble generating a variable using another o…
convert string yyyy-mm-dd hh:mm:ss to %td formatHello, As the title of this question suggests, I have a set of data with variable "Qtm" in string f…
pweight with melogitI have a Panel dataset with 260,647 data points consisting of 260,647 Respondents within 43,400 hous…
Subscribe to:
Post Comments (Atom)
0 Response to Calculando o coeficiente de Gini
Post a Comment