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
Generate mean and median test results in StataDear Stata Users: I am trying to generate mean and median test results in Stata. Thanks to Kain Chen…
Generating a new variable based on several specified conditionsDear Stata-Community, I am currently working on a paper in which I want to create a variable that in…
Test for differences in Medians for Multiple Variables Using qregDear Stata Users: I would like to Test for differences in Medians for Multiple Variables Using qreg …
Create several nested regression tables in the same file with asdocDear all, I want to create several nested regression tables in the same file and do it with option …
Type mismatch issues with generating / replacingHi all, I'm currently trying to create a dummy variable, inlaborforce, using the below code: gen i…
Subscribe to:
Post Comments (Atom)
0 Response to Calculando o coeficiente de Gini
Post a Comment