JulianJohannesen
New Member
- Joined
- May 28, 2015
- Messages
- 1
Hello all,
I have about 29,000 records with all sorts of demographic data for individuals. These records each belong to one of 13 states or counties, 5 ethnic categories and 3 age categories. I want to assign a specific weight to each record in a category. I have my list of 13x5x3 = 195 weights. How can can assign those weights to my records without performing 195 copy and paste operations and then copying that weight factor down for the number of records in each of those categories?
[TABLE="width: 291"]
<tbody>[TR]
[TD="colspan: 4"]A unique weight goes with each category[/TD]
[/TR]
[TR]
[TD]State[/TD]
[TD]Race[/TD]
[TD]Age[/TD]
[TD]Weight[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD]weight1[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-59[/TD]
[TD]weight2[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]60+[/TD]
[TD]weight3[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]black[/TD]
[TD]18-29[/TD]
[TD]weight4[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]black[/TD]
[TD]30-59[/TD]
[TD]weight5[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]black[/TD]
[TD]60+[/TD]
[TD]weight6[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]caucasian[/TD]
[TD]18-29[/TD]
[TD]weight7[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]caucasian[/TD]
[TD]30-59[/TD]
[TD]weight8[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]caucasian[/TD]
[TD]60+[/TD]
[TD]weight9[/TD]
[/TR]
[TR]
[TD]… etc[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]Actual data without weight included[/TD]
[/TR]
[TR]
[TD]State[/TD]
[TD]Race[/TD]
[TD]Age[/TD]
[TD]Weight[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-59[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-61[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-62[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-63[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-64[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-65[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-66[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]… and so on for thousands of records
[/TD]
[/TR]
</tbody>[/TABLE]
I have about 29,000 records with all sorts of demographic data for individuals. These records each belong to one of 13 states or counties, 5 ethnic categories and 3 age categories. I want to assign a specific weight to each record in a category. I have my list of 13x5x3 = 195 weights. How can can assign those weights to my records without performing 195 copy and paste operations and then copying that weight factor down for the number of records in each of those categories?
[TABLE="width: 291"]
<tbody>[TR]
[TD="colspan: 4"]A unique weight goes with each category[/TD]
[/TR]
[TR]
[TD]State[/TD]
[TD]Race[/TD]
[TD]Age[/TD]
[TD]Weight[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD]weight1[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-59[/TD]
[TD]weight2[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]60+[/TD]
[TD]weight3[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]black[/TD]
[TD]18-29[/TD]
[TD]weight4[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]black[/TD]
[TD]30-59[/TD]
[TD]weight5[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]black[/TD]
[TD]60+[/TD]
[TD]weight6[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]caucasian[/TD]
[TD]18-29[/TD]
[TD]weight7[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]caucasian[/TD]
[TD]30-59[/TD]
[TD]weight8[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]caucasian[/TD]
[TD]60+[/TD]
[TD]weight9[/TD]
[/TR]
[TR]
[TD]… etc[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]Actual data without weight included[/TD]
[/TR]
[TR]
[TD]State[/TD]
[TD]Race[/TD]
[TD]Age[/TD]
[TD]Weight[/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]18-29[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-59[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-60[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-61[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-62[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-63[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-64[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-65[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD]asian[/TD]
[TD]30-66[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 4"]… and so on for thousands of records
[/TD]
[/TR]
</tbody>[/TABLE]