#########################################
Lauren Bachan
The Pennsylvania State University
February 2014

This file serves as a code book to ACF_example_data.dta. It describes the 
variables included in that data set as well as relevant data structure and use.
#########################################


				#################  VARIABLES  #################
## ID Variables ##
sample	: Flags people who were included in the analytic sub-sample (1=included)
	##NOTE: 72 people who only participated in wave 1 (or wave 1 and 1 other
	wave in the analytic interval) are not included in the example data set 
	because it contains only waves 2 through 8 (the analytic interval). 
respid	: the id assigned to each respondent. 6 characters are for women and 7
	characters are for men.
	
## Variables used in primary analysis ##
foster2: flags when a respondent's household fostered a child (1=fostered).
	##NOTE: To test for a lagged effect of fostering , this variable has been offset 
	by 1 wave. For example, if foster2 =1 in wave 4, the respondent reported the 
	event in wave 3. 
foster2b: holds foster2 steady over time to categorize households pre- and 
		post-fostering (as described in "Analytic approach" section of paper).
foster4: categorizes type of fostering by anticipation:
		1= no fostering
		2= surprised fostering
		3= anticipated fostering
		4= uncertain fostering
		##NOTE: Because this variable was also offset by a wave (see description of 
		foster2) categories were created based on the value of x5j recorded TWO waves 
		prior in the example data set.
foster44: holds foster4 steady over time.
foster011: same as foster44, but expands the definitions of surprised and 
	    anticipated fostering by 1 bean (as described in Appendix B of article).	
SES		: household wealth index
wave 	: The wave of the study. Waves are separated by 4 month intervals
time	: counts the consecutive number of times a respondent interviewed.
hhsize	: Number of people living in respondent's household. Has been adjusted
		to remove the foster child for households fostering.
student	: Dummy variable flagging if/when a respondent was a student (1=student)
married	: 1 = married or cohabitation. 0= not married.
yearsed	: years of education completed
income000 : previous month's income in 1,000 Kwatcha
hhmove	: flag marking if a respondent moved households (1= move)
	
	##the following variables are time-invariant and used to create Table 2:
everfostered: flags household that have ever fostered a child
ultmtsup    : flags household that have ever fostered a child by surprise
ultmtant    : flags household that have ever fostered a child in anticipation
ultmtunc    : flags respondents who's household ever fostered uncertainly
			##NOTE: the "ultmt" fostered variables were coded to be mutually 
			exclusive and to facilitate the creation of Table 2. In the event a
			respondent's household fostered multiple times under different 
			anticipatory circumstances, the most recent (ultimate) anticipation
			status was used to categorize them.

##  Variables used in supplementary analyses ##

anticipateL	 :	same as x5j, but offset by 2 waves (x5j at wave 1 = anticipateL
		at wave 3). This aligns anticipation of fostering 1 wave before
		when fostering is recorded to happen in the current data set and 
		is used to estimate an independent effect of anticipation of
		fostering on SES. It is also used to test if anticipation at 
		wave 1 predicts fostering in wave 2.
SES_wave1 : household wealth index imported from wave 1. used to estimate wave 1
			predictors of fostering in wave 2 (Table A3) and Table 2. 
			#NOTE: this is time-invariant (constant within respid)
			 and should only be used in above analyses.
incomeW1	: "income000" from wave 1. used to estimate wave 1 predictors of
			fostering in wave 2 (Table A3) and in Table 2.
			#NOTE: this is time-invariant (constant within respid)
			 and should only be used in above analyses.
hhsizeW1	: household size from wave 1 (not adjusted for fostering) . 
			 Used only to create Table 2.
			#NOTE: this is time-invariant (constant within respid)
			 and should only be used in above analyses.
yearsedW1	: "yearsed" from wave 1.  Used only to create Table 2.
			#NOTE: this is time-invariant (constant within respid)
			 and should only be used in above analyses.
marriedW1	 :"married" from wave 1.  Used only to create Table 2.
			#NOTE: this is time-invariant (constant within respid)
			 and should only be used in above analyses.	
marriedW1_3 : "married" from wave 1. Only populated in wave 3.
			 used to estimate wave 1 predictors of fostering in wave 2
			 (Table A3) and in supplementary interactions
yearsedW1_3 : "yearsed" from wave 1. only populated in wave 3.
			used  to estimate wave 1 predictors of fostering in wave 2 (Table A3)
			and in supplementary analyses.
female 		: flag marking women (1=female)	
age 		: age of respondent 
x5j			: The likelihood of fostering a non-biological child into the household
			in the next 4 months. Ranges from 0-10, with higher values indicating
			higher likelihood.
x5b			: the likelihood of opening a business in the next 4 months. ranges from 
			0-10, with higher values indicating higher likelihood
x5c			: the likelihood of opening a bank account in the next 4 months. ranges from
			0-10, with higher values indicating higher likelihood.
x5e	 		: the likelihood of saving money in the next 4 months. Ranges from
			0-10, with higher values indicating higher likelihood

		