Last data update: 2014.03.03

R: General Health Questionnaire
GHQR Documentation

General Health Questionnaire

Description

Data from an psychiatric screening questionnaire

Usage

data("GHQ")

Format

A data frame with 22 observations on the following 4 variables.

GHQ

the General Health Questionnaire score.

sex

a factor with levels female and male

cases

the number of diseased subjects.

non.cases

the number of healthy subjects.

Details

The data arise from a study of a psychiatric screening questionnaire called the GHQ (General Health Questionnaire, see Goldberg, 1972). Here the main question of interest is to see how caseness is related to gender and GHQ score.

Source

D. Goldberg (1972). The Detection of Psychiatric Illness by Questionnaire, Oxford University Press, Oxford, UK.

Examples


  data("GHQ", package = "HSAUR")
  male <- subset(GHQ, sex == "male")
  female <- subset(GHQ, sex == "female")
  layout(matrix(1:2, ncol = 2))
  barplot(t(as.matrix(male[,c("cases", "non.cases")])), main = "Male", xlab = "GHC score")
  barplot(t(as.matrix(male[,c("cases", "non.cases")])), main = "Female", xlab = "GHC score")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(HSAUR)
Loading required package: tools
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HSAUR/GHQ.Rd_%03d_medium.png", width=480, height=480)
> ### Name: GHQ
> ### Title: General Health Questionnaire
> ### Aliases: GHQ
> ### Keywords: datasets
> 
> ### ** Examples
> 
> 
>   data("GHQ", package = "HSAUR")
>   male <- subset(GHQ, sex == "male")
>   female <- subset(GHQ, sex == "female")
>   layout(matrix(1:2, ncol = 2))
>   barplot(t(as.matrix(male[,c("cases", "non.cases")])), main = "Male", xlab = "GHC score")
>   barplot(t(as.matrix(male[,c("cases", "non.cases")])), main = "Female", xlab = "GHC score")
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>