Socatt: Social Attitudes Survey

Description Usage Format Details Source References Examples

Description

These data come from the British Social Attitudes (BSA) Survey started in 1983. The eligible persons were all adults aged 18 or over living in private households in Britain. The data consist of completed results of 264 respondents out of 410.

Usage

1

Format

A data frame with 1056 observations on the following 9 variables.

district

District ID - a factor

respond

Respondent code (within district) - a factor

year

A factor with levels 1983, 1984, 1985, and 1986

numpos

An ordered factor giving the number of positive answers to seven questions.

party

Political party chosen - a factor. Levels are conservative, labour, Lib/SDP/Alliance, others, and none.

class

Self assessed social class - a factor. Levels are middle, upper working, and lower working.

gender

Respondent's sex. (1=male, 2=female)

age

Age in years

religion

Religion - a factor. Levels are Roman Catholic, Protestant/Church of England, others, and none.

Details

These data are provided as an example of multilevel data with a multinomial response.

Source

http://www.bristol.ac.uk/cmm/learning/mmsoftware/data-rev.html

References

McGrath, K. and Waterton, J. (1986). British Social Attitudes 1983-1986 panel survey. London, Social and Community Planning Research.

Examples

1
2

Example output

Loading required package: lme4
Loading required package: Matrix
'data.frame':	1056 obs. of  9 variables:
 $ district: Factor w/ 54 levels "1","2","3","4",..: 1 1 1 1 1 1 1 1 2 2 ...
 $ respond : Factor w/ 264 levels "39","46","48",..: 258 258 258 258 259 259 259 259 260 260 ...
 $ year    : Factor w/ 4 levels "1983","1984",..: 1 2 3 4 1 2 3 4 1 2 ...
 $ numpos  : Ord.factor w/ 8 levels "0"<"1"<"2"<"3"<..: 8 4 5 8 4 5 7 4 8 8 ...
 $ party   : Factor w/ 5 levels "conservative",..: 2 2 2 2 5 1 2 4 5 4 ...
 $ class   : Factor w/ 3 levels "middle","upper working",..: 3 3 3 3 3 1 3 1 1 2 ...
 $ gender  : Factor w/ 2 levels "male","female": 1 1 1 1 2 2 2 2 1 1 ...
 $ age     : int  65 65 65 65 31 31 31 31 33 33 ...
 $ religion: Factor w/ 4 levels "Roman Catholic",..: 2 2 2 2 2 2 2 2 4 4 ...
    district      respond       year         numpos                 party    
 44     : 40   39     :   4   1983:264   7      :338   conservative    :400  
 8      : 36   46     :   4   1984:264   3      :248   labour          :371  
 14     : 36   48     :   4   1985:264   6      :140   Lib/SDP/Alliance:223  
 20     : 36   55     :   4   1986:264   4      :127   others          : 39  
 32     : 36   56     :   4              5      :124   none            : 23  
 19     : 32   60     :   4              2      : 52                         
 (Other):840   (Other):1032              (Other): 27                         
           class        gender         age                  religion  
 middle       :264   male  :468   Min.   :18.00   Roman Catholic: 72  
 upper working:268   female:588   1st Qu.:31.00   Protestant    :448  
 lower working:524                Median :40.50   others        :180  
                                  Mean   :43.52   none          :356  
                                  3rd Qu.:55.00                       
                                  Max.   :80.00                       
                                                                      

mlmRev documentation built on April 5, 2020, 9:07 a.m.