

Hi all,


for the data below I would like to

1. generate a dummy variable for each group "gr" of the same composition by
people, then save each portion in a separate file,

2. compute the frequency of "1"'s in "x" for each person by group
"gr". So, "mike" will have freq=2/3, as he has two "1" and one "0" in 3
groups.


Thanks a lot,

Serguei Kaniovski


The data looks like:

person;gr;x

mike;gr1;1

jane;gr1;0

bill;gr1;0

jack;gr2;1

mike;gr2;1

jane;gr2;0

bill;gr2;0

alex;gr2;1

james;gr2;1

mike;gr3;0

bill;gr3;1

jane;gr3;1
___________________________________________________________________

Austrian Institute of Economic Research (WIFO)

Name: Serguei Kaniovski       P.O.Box 91
Tel.: +43-1-7982601-231             Arsenal Objekt 20
Fax: +43-1-7989386                  1103 Vienna, Austria
Mail: Serguei.Kaniovski@wifo.ac.at  A-1030 Wien

http://www.wifo.ac.at/Serguei.Kaniovski
	[[alternative HTML version deleted]]

