ODKmeta with Stata

Hi @Hema!

It's normal for ODK Briefcase to export a separate CSV file for each repeat group in your form. If your form has two repeat groups, then you should have three CSV files, one for the main fields (the fields outside a repeat group), then one each for the two repeat groups.

odkmeta expects this: it expects a separate CSV file for each repeat group. The odkmeta do-file saves a .dta file for each CSV file, so in your case, at the end of the do-file, there should be three .dta files.

The do-file also merges the dataset for each repeat group into its parent dataset. For example, if you have a form with a repeat group named A, which itself contains a repeat group named B, then there will be three datasets: one for the main fields, one for A, and one for B. The dataset for B will be merged into the dataset for A (using the reshape and merge commands in Stata), then the dataset for A will be merged into the dataset for the main fields.

Does the odkmeta do-file run without error? If there is an error, what does the message say?