# share-gv_children.R
setwd('C:/SHARE/R')
source('share-initialize.R')
dir_data <- 'C:/SHARE/R/data'
d <- fread(file = paste0(dir_data,'/data-raw-gv_children.csv') )
GV CHILDREN: 7, 6,
ch001_ byte %10.0g dkrf NUMBER OF CHILDREN
ch_gender_1 byte %10.0g gender Child gender, based on ch005_1
ch_yrbirth_1 int %10.0g dkrf Child year of birth, based on ch006_1
ch_relation_1 byte %43.0g child_rel Relation to child 1, based on ch302_, ch303_1 and ch102_1 to ch108_1
ch_contact_1 byte %27.0g sn007 Contact to child 1, based on ch014_1 & sn007_1
ch_proximity_1 byte %39.0g sn006 Proximity to child 1, based on ch007_1, ch526_1 or sn006_1
ch_move_out_~_1 int %19.0g ch_move_out_year Year when child 1 moved out, based on ch015_1
ch_marital_s~_1 byte %56.0g ch_marital_status Marital status of child 1, based on ch012_1 & ch516_1
ch_occupation_1 byte %58.0g ch_occupation Occupational status of child 1, based on ch016_1
ch_number_of~_1 byte %10.0g dkrf Number of children child 1, based on ch019_1 & ch519_1
ch_yrbirth_y~_1 int %10.0g dkrf Yrbirth youngest child of child 1, based on ch020_1 & ch520_1
ch_babysit_1 byte %12.0g ft_sp Looked after child of child 1, based on sp015_1
ch_fin_gave_1 byte %12.0g ft_sp Financial gift given to child 1 (based on ft032_*)
ch_fin_recei~_1 byte %12.0g ft_sp Financial gift received from child 1 (based on ft034_*)
ch_gift_rece~_1 byte %12.0g ft_sp Gift received from child 1 (based on ft036_*)
ch_gift_gave_1 byte %12.0g ft_sp Gift given to child 1 (based on ft038_*)
ch_outhh_rec~_1 byte %12.0g ft_sp Outside HH: received help from child 1 (based on sp027_*)
ch_outhh_gav~_1 byte %12.0g ft_sp Outside HH: gave help to child 1 (based on sp029_*)
ch_hh_gave_c~_1 byte %12.0g ft_sp Inside HH: gave help to child 1 (based on sp031_*)
ch_hh_receiv~_1 byte %12.0g ft_sp Inside HH: Received help from child 1 (based on sp033_*)
ch_school_ed~_1 byte %164.0g educat School degree of child 1, based on ch017_1 & ch510_1
ch_further~_1_1 byte %108.0g ch_further_education Further education of child 1, based on ch018_1_* & ch513_1_*
wave 1...
ch014_1 byte %27.0g ch014 Child 1 contact with child
ch014_2 byte %27.0g ch014 Child 2 contact with child
ch014_3 byte %27.0g ch014 Child 3 contact with child
ch014_4 byte %27.0g ch014 Child 4 contact with child
. tab ch007_1
Child 1 where does child live | Freq. Percent Cum.
----------------------------------------+-----------------------------------
Refusal | 15 0.07 0.07
Don't know | 65 0.29 0.36
In the same household | 4,779 21.61 21.97
In the same building | 1,197 5.41 27.39
Less than 1 kilometre away | 2,558 11.57 38.95
Between 1 and 5 kilometres away | 3,336 15.09 54.04
Between 5 and 25 kilometres away | 4,151 18.77 72.81
Between 25 and 100 kilometres away | 2,671 12.08 84.89
Between 100 and 500 kilometres away | 2,172 9.82 94.71
More than 500 kilometres away | 1,128 5.10 99.81
More than 500 kilometres away in anothe | 41 0.19 100.00
----------------------------------------+-----------------------------------
Total | 22,113 100.00
ch526_1 byte %39.0g ch526 Child 1 where does child live
ch526_2 byte %39.0g ch526 Child 2 where does child live
ch526_3 byte %39.0g ch526 Child 3 where does child live
ch526_4 byte %39.0g ch526 Child 4 where does child live
. tab ch526_1
Child 1 where does child live | Freq. Percent Cum.
------------------------------------+-----------------------------------
Refusal | 3 0.16 0.16
Don't know | 2 0.11 0.27
In the same household | 51 2.77 3.04
In the same building | 42 2.28 5.32
Less than 1 kilometre away | 174 9.45 14.77
Between 1 and 5 kilometres away | 337 18.30 33.06
Between 5 and 25 kilometres away | 449 24.38 57.44
Between 25 and 100 kilometres away | 344 18.68 76.11
Between 100 and 500 kilometres away | 265 14.39 90.50
More than 500 kilometres away | 173 9.39 99.89
Country-specific category | 2 0.11 100.00
------------------------------------+-----------------------------------