xs.nz: Cross-sectional Data from the New Zealand Population

Description Usage Format Details Warning Note Source References See Also Examples

Description

A cross-sectional data set of a workforce company, plus another health survey, in New Zealand during the 1990s,

Usage

1

Format

A data frame with 10529 observations on the following 58 variables. For binary variables, a "1" or TRUE means yes, and "0" or FALSE means no. Also, "D" means don't know, and "-" means not applicable. The pregnancy questions were administered to women only.

regnum

a numeric vector, a unique registration number. This differs from their original registration number, and the rows are sorted by their new registration number.

study1

a logical vector, Study 1 (workforce) or Study 2?

age

a numeric vector, age in years.

sex

a factor with levels F and M.

pulse

a numeric vector, beats per minute.

sbp

a numeric vector, systolic blood pressure (mm Hg).

dbp

a numeric vector, diastolic blood pressure (mm Hg).

cholest

a numeric vector, cholesterol (mmol/L).

height

a numeric vector, in m.

weight

a numeric vector, in kg.

fh.heartdisease

a factor with levels 0, 1, D. Has a family history of heart disease (heart attack, angina, or had a heart bypass operation) within the immediate family (brother, sister, father or mother, blood relatives only)? Note that D means: do not know.

fh.age

a factor, following from fh.heartdisease, if yes, how old was the family member when it happened (if more than one family member, give the age of the youngest person)?

fh.cancer

a factor with levels 0, 1, D. Has a family history of cancer within the immediate family (blood relatives only)? Note that D means: do not know.

heartattack

a numeric vector, have you ever been told by a doctor that you have had a heart attack ("coronary")?

stroke

a numeric vector, have you ever been told by a doctor that you have had a stroke?

diabetes

a numeric vector, have you ever been told by a doctor that you have had diabetes?

hypertension

a numeric vector, have you ever been told by a doctor that you have had high blood pressure (hypertension)?

highchol

a numeric vector, have you ever been told by a doctor that you have had high cholesterol?

asthma

a numeric vector, have you ever been told by a doctor that you have had asthma?

cancer

a numeric vector, have you ever been told by a doctor that you have had cancer?

acne

a numeric vector, have you ever received treatment from a doctor for acne (pimples)?

sunburn

a numeric vector, have you ever received treatment from a doctor for sunburn?

smokeever

a numeric vector, have you ever smoked tailor-made or roll-you-own cigarettes once a week or more?

smokenow

a numeric vector, do you smoke tailor-made or roll-you-own cigarettes now?

smokeagequit

a factor, if no to smokenow, how old were you when you stopped smoking?

smokeyears

a numeric vector, if yes to smokeever, for how many years altogether have you smoked tailor-made or roll-you-own cigarettes?

drinkmonth

a numeric vector, do you drink alcohol once a month or more?

drinkfreqweek

a numeric vector, if yes to drinkmonth, about how often do you drink alcohol (days per week)? Note: 0.25 is once a month, 0.5 is once every two weeks, 1 is once a week, 2.5 is 2-3 days a week, 4.5 is 4-5 days a week, 6.5 is 6-7 days a week.

Further note: 1 can, small bottle or handle of beer or home brew = 1 drink, 1 quart bottle of beer = 2 drinks, 1 jug of beer = 3 drinks, 1 flagon/peter of beer = 6 drinks, 1 glass of wine, sherry = 1 drink, 1 bottle of wine = 6 drinks, 1 double nip of spirits = 1 drink.

drinkweek

a numeric vector, how many drinks per week, on average. This is the average daily amount of drinks multiplied by the frequency of drinking per week. See drinkfreqweek on what constitutes a 'drink'.

drinkmaxday

a numeric vector, in the last three months, what is the largest number of drinks that you had on any one day? Warning: some values are considered unrealistically excessive.

pregnant

a factor, have you ever been pregnant for more than 5 months?

pregfirst

a factor, if yes to pregnant, how old were you when your first baby was born (or you had a miscarriage after 5 months)?

preglast

a factor, how old were you when your last baby was born (or you had a miscarriage after 5 months)?

babies

numeric, how many babies have you given birth to?

moody

a numeric vector, does your mood often go up or down?

miserable

a numeric vector, do you ever feel 'just miserable' for no reason?

hurt

a numeric vector, are your feelings easily hurt?

fedup

a numeric vector, do you often feel 'fed up'?

nervous

a numeric vector, would you call yourself a nervous person?

worrier

a numeric vector, are you a worrier?

worry

a numeric vector, do you worry about awful things that might happen?

tense

a numeric vector, would you call yourself tense or 'highly strung'?

embarrassed

a numeric vector, do you worry too long after an embarrassing experience?

nerves

a numeric vector, do you suffer from 'nerves'?

nofriend

a numeric vector, do you have a friend or family member that you can talk to about problems or worries that you may have? The value 1 effectively means "no", i.e., s/he has no friend or friends.

depressed

a numeric vector, in your lifetime, have you ever had two weeks or more when nearly every day you felt sad or depressed?

exervig

a numeric vector, how many hours per week would you do any vigorous activity or exercise either at work or away from work that makes you breathe hard and sweat? Values here ought be be less than 168.

exermod

a numeric vector, how many hours per week would you do any moderate activity or exercise such as brisk walking, cycling or mowing the lawn? Values here ought be be less than 168.

feethour

a numeric vector, on an average work day, how long would you spend on your feet, either standing or moving about?

ethnicity

a factor with 4 levels, what ethnic group do you belong to? European = European (NZ European or British or other European), Maori = Maori, Polynesian = Pacific Island Polynesian, Other = Other (Chinese, Indian, Other).

sleep

a numeric vector, how many hours do you usually sleep each night?

snore

a factor with levels 0, 1, D. Do you usually snore? Note that D means: do not know.

cat

a numeric vector, do you have a household pet cat?

dog

a numeric vector, do you have a household pet dog?

hand

a factor with levels right = right, left = left, both = either. Are you right-handed, left-handed, or no preference for left or right?

numhouse

an ordered factor with 4 levels: 1 = 1, 2 = 2, 3 = 3, 4+ = four or more; how many people (including yourself) usually live in your house?

marital

a factor with 4 levels: single = single, married = married or living with a partner, separated = separated or divorced, widowed = widowed.

educ

an ordered factor with 4 levels: primary = Primary school, secondary = High school/secondary school, polytechnic = Polytechnic or similar, university = University. What was the highest level of education you received?

Details

The data frame is a subset of the entire data set which was collected from a confidential self-administered questionnaire administered in a large New Zealand workforce observational study conducted during 1992–3. The data were augmented by a second study consisting of retirees. The data can be considered a reasonable representation of the white male New Zealand population in the early 1990s. There were physical, lifestyle and psychological variables that were measured. The psychological variables were headed "Questions about your feelings".

Although some data cleaning was performed and logic checks conducted, anomalies remain. Some variables, of course, are subject to a lot of measurement error and bias. It is conceivable that some participants had poor reading skills!

Warning

More variables may be added in the future and these may be placed in any column position. Therefore references such as xs.nz[, 12] are dangerous. Also, variable names may change in the future as well as their format or internal structure, e.g., factor versus numeric.

Note

More error checking are needed for the pregnancy and smoking variables.

Source

Originally, Clinical Trials Research Unit, University of Auckland, New Zealand, http://www.ctru.auckland.ac.nz. Originally much of the error checking and formatting was performed by Stephen Vander Hoorn. Lately (2014), more changes and error checks were made to the data by James T. Gray.

References

MacMahon, S., Norton, R., Jackson, R., Mackie, M. J., Cheng, A., Vander Hoorn, S., Milne, A., McCulloch, A. (1995). Fletcher Challenge-University of Auckland Heart & Health Study: design and baseline findings. New Zealand Medical Journal, 108, 499–502.

See Also

chest.nz.

Examples

1
2

Example output

     regnum         study1             age        sex          pulse       
 Min.   : 20003   Mode :logical   Min.   :16.00   F:2944   Min.   : 34.00  
 1st Qu.: 46789   FALSE:2518      1st Qu.:32.00   M:7585   1st Qu.: 61.00  
 Median : 73099   TRUE :8011      Median :42.00            Median : 68.00  
 Mean   : 73013                   Mean   :43.59            Mean   : 69.08  
 3rd Qu.: 99724                   3rd Qu.:52.00            3rd Qu.: 76.00  
 Max.   :125288                   Max.   :88.00            Max.   :189.00  
                                  NA's   :46               NA's   :36      
      sbp             dbp           cholest           height     
 Min.   : 60.0   Min.   : 32.0   Min.   : 2.210   Min.   :1.060  
 1st Qu.:114.0   1st Qu.: 70.0   1st Qu.: 4.550   1st Qu.:1.670  
 Median :124.0   Median : 77.0   Median : 5.300   Median :1.730  
 Mean   :125.9   Mean   : 76.8   Mean   : 5.348   Mean   :1.723  
 3rd Qu.:135.0   3rd Qu.: 84.0   3rd Qu.: 6.050   3rd Qu.:1.790  
 Max.   :223.0   Max.   :145.0   Max.   :13.400   Max.   :2.050  
 NA's   :16      NA's   :23      NA's   :114      NA's   :29     
     weight       fh.heartdisease     fh.age     fh.cancer    heartattack     
 Min.   : 33.60   0   :5955       -      :5941   0   :6249   Min.   :0.00000  
 1st Qu.: 68.00   1   :3922       D      : 820   1   :3543   1st Qu.:0.00000  
 Median : 78.00   D   : 611       60     : 290   D   : 627   Median :0.00000  
 Mean   : 78.65   NA's:  41       50     : 205   NA's: 110   Mean   :0.02198  
 3rd Qu.: 88.00                   65     : 204               3rd Qu.:0.00000  
 Max.   :199.00                   (Other):2977               Max.   :1.00000  
 NA's   :12                       NA's   :  92               NA's   :20       
     stroke           diabetes       hypertension       highchol      
 Min.   :0.00000   Min.   :0.0000   Min.   :0.0000   Min.   :0.00000  
 1st Qu.:0.00000   1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:0.00000  
 Median :0.00000   Median :0.0000   Median :0.0000   Median :0.00000  
 Mean   :0.01088   Mean   :0.0227   Mean   :0.1606   Mean   :0.09747  
 3rd Qu.:0.00000   3rd Qu.:0.0000   3rd Qu.:0.0000   3rd Qu.:0.00000  
 Max.   :1.00000   Max.   :1.0000   Max.   :1.0000   Max.   :1.00000  
 NA's   :55        NA's   :45       NA's   :52       NA's   :126      
     asthma            cancer             acne            sunburn      
 Min.   :0.00000   Min.   :0.00000   Min.   :0.00000   Min.   :0.0000  
 1st Qu.:0.00000   1st Qu.:0.00000   1st Qu.:0.00000   1st Qu.:0.0000  
 Median :0.00000   Median :0.00000   Median :0.00000   Median :0.0000  
 Mean   :0.09822   Mean   :0.06386   Mean   :0.05812   Mean   :0.0507  
 3rd Qu.:0.00000   3rd Qu.:0.00000   3rd Qu.:0.00000   3rd Qu.:0.0000  
 Max.   :1.00000   Max.   :1.00000   Max.   :1.00000   Max.   :1.0000  
 NA's   :42        NA's   :53        NA's   :67        NA's   :214     
   smokeever         smokenow       smokeagequit    smokeyears    
 Min.   :0.0000   Min.   :0.0000   -      :7105   Min.   : 0.000  
 1st Qu.:0.0000   1st Qu.:0.0000   30     : 234   1st Qu.: 0.000  
 Median :1.0000   Median :0.0000   35     : 150   Median : 2.000  
 Mean   :0.5509   Mean   :0.2373   25     : 145   Mean   : 9.445  
 3rd Qu.:1.0000   3rd Qu.:0.0000   40     : 136   3rd Qu.:16.000  
 Max.   :1.0000   Max.   :1.0000   (Other):2629   Max.   :75.000  
 NA's   :45       NA's   :93       NA's   : 130   NA's   :265     
   drinkmonth     drinkfreqweek     drinkweek        drinkmaxday    
 Min.   :0.0000   Min.   :0.000   Min.   :  0.000   Min.   : 0.000  
 1st Qu.:1.0000   1st Qu.:0.500   1st Qu.:  1.000   1st Qu.: 2.000  
 Median :1.0000   Median :1.000   Median :  4.500   Median : 6.000  
 Mean   :0.8442   Mean   :2.133   Mean   :  7.619   Mean   : 7.333  
 3rd Qu.:1.0000   3rd Qu.:2.500   3rd Qu.: 10.000   3rd Qu.:10.000  
 Max.   :1.0000   Max.   :6.500   Max.   :292.500   Max.   :90.000  
 NA's   :43       NA's   :70      NA's   :270       NA's   :207     
 pregnant      pregfirst       preglast        babies            moody       
 -   :7577   -      :8554   -      :8567   Min.   : 0.0000   Min.   :0.0000  
 0   : 985   23     : 194   28     : 150   1st Qu.: 0.0000   1st Qu.:0.0000  
 1   :1951   21     : 187   30     : 150   Median : 0.0000   Median :0.0000  
 NA's:  16   22     : 180   29     : 147   Mean   : 0.4968   Mean   :0.4165  
             24     : 158   27     : 133   3rd Qu.: 0.0000   3rd Qu.:1.0000  
             (Other):1229   (Other):1316   Max.   :11.0000   Max.   :1.0000  
             NA's   :  27   NA's   :  66   NA's   :29        NA's   :69      
   miserable           hurt            fedup           nervous     
 Min.   :0.0000   Min.   :0.0000   Min.   :0.0000   Min.   :0.000  
 1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:0.000  
 Median :0.0000   Median :0.0000   Median :0.0000   Median :0.000  
 Mean   :0.2919   Mean   :0.4018   Mean   :0.4175   Mean   :0.168  
 3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:0.000  
 Max.   :1.0000   Max.   :1.0000   Max.   :1.0000   Max.   :1.000  
 NA's   :87       NA's   :86       NA's   :98       NA's   :66     
    worrier           worry            tense         embarrassed    
 Min.   :0.0000   Min.   :0.0000   Min.   :0.0000   Min.   :0.0000  
 1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:0.0000  
 Median :0.0000   Median :0.0000   Median :0.0000   Median :0.0000  
 Mean   :0.4169   Mean   :0.2228   Mean   :0.1342   Mean   :0.2819  
 3rd Qu.:1.0000   3rd Qu.:0.0000   3rd Qu.:0.0000   3rd Qu.:1.0000  
 Max.   :1.0000   Max.   :1.0000   Max.   :1.0000   Max.   :1.0000  
 NA's   :99       NA's   :73       NA's   :103      NA's   :88      
     nerves        nofriend        depressed         exervig       
 Min.   :0.00   Min.   :0.0000   Min.   :0.0000   Min.   :  0.000  
 1st Qu.:0.00   1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:  0.000  
 Median :0.00   Median :0.0000   Median :0.0000   Median :  1.500  
 Mean   :0.19   Mean   :0.1328   Mean   :0.2805   Mean   :  4.189  
 3rd Qu.:0.00   3rd Qu.:0.0000   3rd Qu.:1.0000   3rd Qu.:  4.125  
 Max.   :1.00   Max.   :1.0000   Max.   :1.0000   Max.   :120.000  
 NA's   :104    NA's   :52       NA's   :43       NA's   :366      
    exermod          feethour           ethnicity        sleep       
 Min.   : 0.000   Min.   : 0.000   European  :8719   Min.   : 0.000  
 1st Qu.: 1.000   1st Qu.: 3.000   Maori     :1082   1st Qu.: 7.000  
 Median : 2.000   Median : 6.000   Polynesian: 485   Median : 7.000  
 Mean   : 4.364   Mean   : 5.731   Other     : 178   Mean   : 7.294  
 3rd Qu.: 4.000   3rd Qu.: 8.000   NA's      :  65   3rd Qu.: 8.000  
 Max.   :98.000   Max.   :16.000                     Max.   :17.000  
 NA's   :547      NA's   :566                        NA's   :255     
  snore           cat              dog            hand      numhouse   
 0   :4982   Min.   :0.0000   Min.   :0.0000   right:9183   1   :1074  
 1   :3484   1st Qu.:0.0000   1st Qu.:0.0000   left :1023   2   :3366  
 D   :1953   Median :1.0000   Median :0.0000   both : 278   3   :2204  
 NA's: 110   Mean   :0.5081   Mean   :0.3191   NA's :  45   4+  :3835  
             3rd Qu.:1.0000   3rd Qu.:1.0000                NA's:  50  
             Max.   :1.0000   Max.   :1.0000                           
             NA's   :140      NA's   :210                              
     marital              educ     
 single  :1481   primary    : 491  
 married :7770   secondary  :6073  
 divorced: 763   polytechnic:2388  
 widowed : 477   university :1508  
 NA's    :  38   NA's       :  69  
                                   
                                   

VGAMdata documentation built on Jan. 16, 2021, 5:08 p.m.