On 22/04/13 09:37, Antti Erkkison wrote:

Hi, sorry for this e-mail, but I have not found any other way to find this answer.

I am an economics student from Finland that are using Gretl, and finding it useful tool to analyze data.

We were wondering if Gretl had a function for dividing groups into low and high respondents, in other word we want to test a part of a population (in OLS) who have marked the highest scores in a survey. We want to test this against other answers in the same survey, but are in doubt that Gretl understands that person 1 is the same person when we change the order of respondents by sorting them in the dependent value and then setting the range to half of the population . 

I would really appreciate an answer, thank you.

Best regards

Antti Erkkison



You may define a dummy variable that takes value 1 for the individuals who are in a group defined by a restriction. For example,

<hansl>
open data3-11.gdt
high=(SALARY>80) #This defines the variable with value 1 for professors with Salary>80 and 0 for the rest.

#and then you may use graphics as:
plot SALARY high --factorized
gnuplot SALARY YEARS high --dummy

#or use the variable "high" in a regression:
ols SALARY const YEARS high
</hansl>

--
Firma Arista
Ignacio Díaz-Emparanza
Zuzendaria/Director
ignacio.diaz-emparanza@ehu.es
94 6013732
EKONOMIA APLIKATUA III SAILA (EKONOMETRIA ETA ESTATISTIKA)/ DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU

Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013740 | F.: +34 946013754
www.ea3.ehu.es
ERNE! Baliteke mezu honen zatiren bat edo mezu osoa legez babestuta egotea. Mezuak badu bere hartzailea. Okerreko helbidera heldu bada (helbidea gaizki idatzi, transmisioak huts egin) eman abisu igorleari, korreo honi erantzunda. Kontuz! Mezua ez bada zuretzat, ez erabili, ez zabaldu beste inori, ez kopiatu eta ez baliatu.
¡ATENCIÓN! Este mensaje contiene información privilegiada o confidencial a la que sólo tiene derecho a acceder el destinatario. Si usted lo recibe por error le agradeceríamos que no hiciera uso de la información y que se pusiese en contacto con el remitente.

E-mail hau inprimatu baino lehen egiaztatu inprimatzeko beharra.
Antes de imprimir este e-mail piense bien si es necesario hacerlo.