Hello everyone! I've been trying to sum duplicate observations and I have read some solutions in past posts, but most of them show how to sum observations based on a single variable.
My dataset looks like this
I couldn't attach all the variables but here is an example. I would like to sum the duplicate observation "100% BANCO" with a code that takes into account all the variables. I don't know if that's possible but it would be very helpful.
Thanks,
Sergio
My dataset looks like this
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str237 Banco str39 CredActComRest07_06 str36 VII_IndRentabilidad11_06 "" "" "" " Bancos de desarrollo" "46415" "20.13591217982227" " Banca Comercial" "1696925" "26.2791427741513" " Banca Hipotecaria" "0" "2.170354332787665" " Banca Universal" "8947708" "32.66473880618365" " Banca de Inversión" "14442" "5.154437519901742" " Empresas de Arrendamiento Financiero" "0" "10.20247933884298" " Entidades de Ahorro y Préstamo" "398240" "91.81085437936594" " Fondos del Mercado Monetario" "0" ".3621510085484482" "100% BANCO" "" "1.981099740488665" "100% BANCO" "" "" "100% BANCO" "" "" end
Thanks,
Sergio
Comment