hello Stata users,
I have a problem with importing excel files and merging data. and was hoping if anyone could help me.
The excel datasheet (attached) with 5 blocks of data (coloured columns) labelled as
1)row_variable, surgery_1_count, surgery_1_%
2)row_variable, surgery_2_count, surgery_2_%
3)row_variable, surgery_3_count, surgery_3_%
4)row_variable, surgery_4_count, surgery_4_%
5)row_variable, surgery_5_count, surgery_5_%
I need to merge them as a stata data set with the column varaibles as follows
row_variable, surgery_1_count,surgery_2_count,surgery_3_count,su rgery_4_count and surgery_5_count.
I have a problem and was hoping to see if any stata experts could help me.
The row variables do not have same number of subdivisions
Eg:
1)Race in Surgery_1 has 7 subdivisions but Race in Surgery_2 has 6 subdivisions
2)ASOURCE in surgery_1 has 5 subdivisions but has 4 subdivisions in surgery_3
I have included an excel sheet and a PDF of the same excel sheet(for those who dont use excel) for clarification purpose.
Thank you
Anwar
I have a problem with importing excel files and merging data. and was hoping if anyone could help me.
The excel datasheet (attached) with 5 blocks of data (coloured columns) labelled as
1)row_variable, surgery_1_count, surgery_1_%
2)row_variable, surgery_2_count, surgery_2_%
3)row_variable, surgery_3_count, surgery_3_%
4)row_variable, surgery_4_count, surgery_4_%
5)row_variable, surgery_5_count, surgery_5_%
I need to merge them as a stata data set with the column varaibles as follows
row_variable, surgery_1_count,surgery_2_count,surgery_3_count,su rgery_4_count and surgery_5_count.
I have a problem and was hoping to see if any stata experts could help me.
The row variables do not have same number of subdivisions
Eg:
1)Race in Surgery_1 has 7 subdivisions but Race in Surgery_2 has 6 subdivisions
2)ASOURCE in surgery_1 has 5 subdivisions but has 4 subdivisions in surgery_3
I have included an excel sheet and a PDF of the same excel sheet(for those who dont use excel) for clarification purpose.
Thank you
Anwar
Comment