-------------------------------------------------------------------------------- log: d:\activeLS\pathview\work\stata2pvd-eg1.log log type: text opened on: 21 May 2009, 13:55:58 . . // program: stata2pvd-eg1.do . // task: create PV dataset in pvd format . // project: Pathview . // author: jsl \ 2009-05-20 . . // #0 . // program setup . . version 10 . clear all . set linesize 80 . matrix drop _all . set scheme s1manual . . local dte "2009-05-20" . local tag "stata2pvd-eg1.do jsl `dte'" . local fnm "stata2pvd-eg1-" . . // #1 . // . . use pvdatatest.dta, clear (ISSP 2002 - selected variables for Russia (2006-03-11).) . codebook _all, compact Variable Obs Unique Mean Min Max Label -------------------------------------------------------------------------------- v2 1798 1798 1800900 1800001 1801798 Respondent Number v4 1797 7 2.4335 1 9 Workg mom: warm relation... v5 1796 7 2.514477 1 9 Workg mom: pre school ch... v6 1795 7 2.530919 1 9 Workg woman: family life... v7 1798 7 2.885984 1 9 What women really want i... v8 1798 7 3.199666 1 9 Household satisfies as m... v9 1798 7 2.368187 1 9 Work is best for womens ... v200 1798 2 1.613459 1 2 R: Sex v201 1798 71 46.87875 18 91 R: Age v202 1798 6 2.177976 1 9 R: Marital status v204 1798 26 19.11513 1 99 R: Education I: years of... v232 1798 8 5.117353 1 99 Country specific educati... v239 1798 11 5.520578 1 99 R: Current employment st... v249 1798 193 228793 25 999999 R: Earnings Vid 1798 1798 1800900 1800001 1801798 v2 Respondent number Vmomwarm 1765 5 2.324646 1 5 v4 Working mom can have ... Vkidsuffer 1755 5 2.373789 1 5 v5 Preschool child suffe... Vfamsuffer 1759 5 2.401933 1 5 v6 Family life suffers w... Vwanthome 1717 5 2.639487 1 5 v7 Women really want hom... Vhousesat 1680 5 2.855357 1 5 v8 Household satisfies a... Vworkbest 1710 5 2.071345 1 5 v9 Work is best for wome... Vsex 1798 2 1.613459 1 2 v200 Sex 1=male 2=female. Vage 1798 71 46.87875 18 91 v201 Age in years. Vmarstat 1779 5 2.105115 1 5 v202 Marital status. Vedyears 1639 21 11.57169 1 21 v204 Education: years of... Vedlevel 1795 7 4.960446 1 7 v232 Education level for... Vempstat 1765 9 3.774504 1 10 v239 Current employment ... Vearnings 1390 190 2424.938 25 90000 v249 R: Earnings. prowarm 1568 2 .75 0 1 Agree working mom can ha... prokids 1483 2 .2326365 0 1 Agree kids don't suffer ... profamily 1481 2 .2538825 0 1 Agree family life doesn'... pronohome 1352 2 .3468935 0 1 Agree women don't want h... projobsat 1248 2 .4447115 0 1 Agree paid job satisfies... proindep 1438 2 .8845619 0 1 Agree work creates indep... female 1798 2 .6134594 0 1 Female? age 1798 71 46.87875 18 91 Age in years. married 1779 2 .8431703 0 1 Ever married? highered 1795 2 .2250696 0 1 Years of education? edyears 1639 21 11.57169 1 21 fulltime 1765 2 .7852691 0 1 Ever worked full time? pro4warm 1568 4 1.989796 1 4 Agree working mom can ha... pro4kids 1483 4 2.973702 1 4 Agree kids don't suffer ... pro4family 1481 4 2.964213 1 4 Agree family life doesn'... pro4nohome 1352 4 2.804734 1 4 Agree women don't want h... pro4jobsat 1248 4 2.639423 1 4 Agree paid job satisfies... pro4indep 1438 4 1.78025 1 4 Agree work creates indep... -------------------------------------------------------------------------------- . keep v2 v4-v9 . * drop missing . foreach v in v4 v5 v6 v7 v8 v9 { 2. drop if `v'>=6 3. } (34 observations deleted) (31 observations deleted) (18 observations deleted) (55 observations deleted) (55 observations deleted) (37 observations deleted) . . // #2 . // . stata2pvd v4-v9 using `fnm'2, id(v2) sort(_all) /// > outlabel(SAgree Agree Mixed Disagree SDisagree) /// > itemlabel(Warm KidSuffers FamSuffers Wants_home Home_satfac Work_best) Dataset is sorted by: v4 v5 v6 v7 v8 v9 (note: file stata2pvd-eg1-2.pvd not found) File stata2pvd-eg1-2.pvd written with header and 1568 paths. . . // #3 . // labels too long . . stata2pvd v4-v9 using `fnm'3, id(v2) sort(_all) /// > outlabel(SAgree Agree Mixed Disagree SDisagree) /// > itemlabel(Warm Child_suffers Family_suffers Wants_home Home_satisfies Work > _best) Dataset is sorted by: v4 v5 v6 v7 v8 v9 Item labels must be 11 or fewer characters. File not written. . . log close log: d:\activeLS\pathview\work\stata2pvd-eg1.log log type: text closed on: 21 May 2009, 13:55:59 --------------------------------------------------------------------------------