trouble with lookup file
Posted: August 30th, 2015, 6:54 pm
Hello,
I'm developing a CAPI application for CSEntry on Android, and we would like to key on a household ID to bring in some data from a previously collected dataset on the same households.
I understand just fine in principle how to create a dictionary associated with an external data file and use the loadcase function to access variables from the data file. However, the lookup data dictionary does not correctly read the associated data file.
Specifically, the data file contains three columns: a 7 digit household ID, a string with the head of household's name, and a binary variable indicating treatment/control group. No matter how I format the data file (i.e. tab delimited text, comma delimited text, .dat, .prn), the dictionary appends the treatment variable to the name variable, leaving the treatment variable empty.
Any ideas what I may be doing wrong?
Thanks,
WMT
I'm developing a CAPI application for CSEntry on Android, and we would like to key on a household ID to bring in some data from a previously collected dataset on the same households.
I understand just fine in principle how to create a dictionary associated with an external data file and use the loadcase function to access variables from the data file. However, the lookup data dictionary does not correctly read the associated data file.
Specifically, the data file contains three columns: a 7 digit household ID, a string with the head of household's name, and a binary variable indicating treatment/control group. No matter how I format the data file (i.e. tab delimited text, comma delimited text, .dat, .prn), the dictionary appends the treatment variable to the name variable, leaving the treatment variable empty.
Any ideas what I may be doing wrong?
Thanks,
WMT