Dear Statalisters,
This might be too easy for some of you, but I got stuck with coding:
I want to count the number of different firmid by each group of sic3 and year, so for 111, 1970 pair, the number of different firmid is 2; for 111, 1971 pair, the count is 3.
input sic3 year firmid
111 1970 2122
111 1970 2123
111 1971 2122
111 1971 2211
111 1971 2235
113 1970 3122
113 1970 3198
113 1970 4022
end
Thanks,
Rochelle
This might be too easy for some of you, but I got stuck with coding:
I want to count the number of different firmid by each group of sic3 and year, so for 111, 1970 pair, the number of different firmid is 2; for 111, 1971 pair, the count is 3.
input sic3 year firmid
111 1970 2122
111 1970 2123
111 1971 2122
111 1971 2211
111 1971 2235
113 1970 3122
113 1970 3198
113 1970 4022
end
Thanks,
Rochelle
Comment