#USE THIS FILE AS A TEMPLATE TO GENERATE A VALID LINKER FILE FOR POPSYN

# Specify input files for sample and marginal variables
HHFILE	pums_hh.csv
PERSONFILE	pums_person.csv
ZONEFILE	sf1.csv

# enter the size of each dimension for the household and person marginal data - this should correspond exactly with what is defined using HHHHMARGVAR and PERSONHHMARGVAR
HHDIMS	7	4	7	5
PERSONDIMS	7	6	14
TESTHHDIMS	11

# Specify the region id, hhid and weight columns from the HH Pums file
REGION	18	0	5
# Specify the zone or geo id and region or puma id columns in the SF3 file
ZONE	0	70
# Specify the region id, the sample id and the weight, from the Person Pums file
PERSON	28	0	5

# Specify all columns (0-indexed) for the following variables: hhtype, hhsize, nveh, nworkers, income, (building type)
HHDATA	16	6	11	14	15	17
# Specify all columns (0-indexed) for the following variables: age, COW, educ, empl_industry, emp_status, gender, income [wage], work arrival time, work mode, work travel time, work_veh_occ, marital_status, race, school_enroll, school_level, work hours, disability
PERSONDATA	6	7	14	21	19	15	16	22	10	8	9	11	26	12	13	17	31

# Specify the variable id (starting from 0) and column number in the pums files wher the variable is located
## HHTYPE
TESTHHVAR	0	16

## HHIncome
HHVAR	0	15
## HH Vehicles
HHVAR	1	11
## HH Size
HHVAR	2	6
## HU type
HHVAR	3	17

## Age
PERSONVAR	0	6
## Race - derived field, not RAC1P! could be race too (26) but then controls would need to be defined accordingly
PERSONVAR	1	27
## EDUCATION by EMPLOYMENT
PERSONVAR	2	32

# Specify the marginal variables giving the variable id, index of the marginal (starting from 0 for each variable), low value (inclusive), high value (exclusive), and column number in the SF3 File
# Use the keyword for each marginal value for each variable - making sure that the number added equals that specified using the HHDIMS and PERSONDIMS commands
TESTHHMARGVAR	0	0	1	2	2
TESTHHMARGVAR	0	1	2	3	3
TESTHHMARGVAR	0	2	3	4	4
TESTHHMARGVAR	0	3	4	5	5
TESTHHMARGVAR	0	4	5	6	6
TESTHHMARGVAR	0	5	6	7	7
TESTHHMARGVAR	0	6	7	8	8
TESTHHMARGVAR	0	7	8	9	9
TESTHHMARGVAR	0	8	9	10	10
TESTHHMARGVAR	0	9	10	11	11
TESTHHMARGVAR	0	10	11	12	12
HHMARGVAR	0	0	-9999999	20000	13
HHMARGVAR	0	1	20000	35000	14
HHMARGVAR	0	2	35000	50000	15
HHMARGVAR	0	3	50000	75000	16
HHMARGVAR	0	4	75000	100000	17
HHMARGVAR	0	5	100000	150000	18
HHMARGVAR	0	6	150000	9999999	19
HHMARGVAR	1	0	0	1	25
HHMARGVAR	1	1	1	2	26
HHMARGVAR	1	2	2	3	27
HHMARGVAR	1	3	3	99	28
HHMARGVAR	2	0	1	2	29
HHMARGVAR	2	1	2	3	30
HHMARGVAR	2	2	3	4	31
HHMARGVAR	2	3	4	5	32
HHMARGVAR	2	4	5	6	33
HHMARGVAR	2	5	6	7	34
HHMARGVAR	2	6	7	99	35
HHMARGVAR	3	0	1	2	20
HHMARGVAR	3	1	2	3	21
HHMARGVAR	3	2	3	4	22
HHMARGVAR	3	3	4	5	23
HHMARGVAR	3	4	5	6	24

PERSONMARGVAR	0	0	0	15	39
PERSONMARGVAR	0	1	15	25	40
PERSONMARGVAR	0	2	25	35	41
PERSONMARGVAR	0	3	35	45	42
PERSONMARGVAR	0	4	45	55	43
PERSONMARGVAR	0	5	55	65	44
PERSONMARGVAR	0	6	65	999	45
PERSONMARGVAR	1	0	1	2	46
PERSONMARGVAR	1	1	2	3	47
PERSONMARGVAR	1	2	3	4	48
PERSONMARGVAR	1	3	4	5	49
PERSONMARGVAR	1	4	5	6	50
PERSONMARGVAR	1	5	6	7	51
PERSONMARGVAR	2	0	1	2	52
PERSONMARGVAR	2	1	2	3	53
PERSONMARGVAR	2	2	3	4	54
PERSONMARGVAR	2	3	4	5	55
PERSONMARGVAR	2	4	5	6	56
PERSONMARGVAR	2	5	6	7	57
PERSONMARGVAR	2	6	7	8	58
PERSONMARGVAR	2	7	8	9	59
PERSONMARGVAR	2	8	9	10	60
PERSONMARGVAR	2	9	10	11	61
PERSONMARGVAR	2	10	11	12	62
PERSONMARGVAR	2	11	12	13	63
PERSONMARGVAR	2	12	13	14	64
PERSONMARGVAR	2	13	14	15	65
