Page 1 of 1
Exporting Field Notes to stata
Posted: February 11th, 2013, 3:28 pm
by kdonovan94
Hi:
When I export our data into Stata, our field note observations get truncated. Anyone else have this problem? We are not sure if it is happening on the Stata or CSPro side of things. The stata string lengths seem arbitrarily set, is there any way in CSPro to set certain fields to longer string lengths?
Thanks,
Katy
Re: Exporting Field Notes to stata
Posted: June 11th, 2013, 7:25 pm
by Gregory Martin
How long are your strings? I don't have Stata on the current laptop I'm using so I can't test this, but I'm guessing that this is a Stata problem, not a CSPro problem. I tested exporting a 999 character string, and my Stata.dct file has the following code:
Code: Select all
infix dictionary using "C:\Users\Insete\Desktop\New folder\Exported.dat" {
1 lines
str long_string 1: 1-999
}
The export is correctly specifying the length of the string.
This website,
http://www.survey-design.com.au/overview.html, says Stata "can handle string variables with a maximum length of 244 characters."
Re: Exporting Field Notes to stata
Posted: April 22nd, 2015, 1:43 am
by Tripple26
I am assuming that your dictionary might contain a minimum of two records. the first being the PERSON record and the second is the HOUSE record. I am also assuming that your PERSON record also contains a data item called RELATIONSHIP and in your HOUSE record there is possibly a data item called OCCUPANCY. So to identify the number of householdHead then we can do this ...