A Stata command for merging SurveyCTO text audit data with imported Stata data sets.
- Add SMCL help file documentation.
Add checks to verify text audit variable.Add checks to verify media location option.Addprefix
option.Addsave
option.- Add
groupnames
option for data sets that maintain SCTO group names. Addstats
option for quick overview of enumerator performance.- Optimize performance of the merge.
Add license information.- Adjust progress display items (if needed).
- Create unit test examples.
- Overall make code more consistent with odkmeta, perhaps for eventual merger.
Titletamerge -- Merge data from SurveyCTO text audit files with SurveyCTO Stata data set in memory.
tamerge varname, media(medialocation) [options]
options Description ------------------------------------------------------------------------- Main * media(medialocation) location of the media folder created by SurveyCTO that contains the text audit data
Options prefix(stub) replace default ta prefix with stub. save(dtaname) write merged data set to a local dta file named dtaname. stats(enumerator) display summary statistics for audit variables and test for differences across enumerator. replace overwrite existing filename ------------------------------------------------------------------------- * media() is required.
tamerge merges SurveyCTO text audit data stored in .csv files in the media folder with the data set in memory based on file mapping contained in variable varname.
Blah, blah, blah....
+------+ ----+ Main +-------------------------------------------------------------
media(medialocation) blah, blah, blah.
+---------+ ----+ Options +----------------------------------------------------------
prefix(stub) blah, blah, blah.
save(dtaname) blah, blah, blah.
stats(enumerator) blah, blah, blah.
replace blah, blah, blah.
Nate Barker of Innovations for Poverty Action wrote the original do-file on which tamerge is based and provided valuable assitance in all aspects of testing and deployment. All credit for tamerge's success should go to him.
Christopher Boyer
For questions or suggestions, submit a GitHub issue or e-mail researchsupport@poverty-action.org.