Last data update: 2014.03.03

R: Highschool data on alcohol, cigarette and marijuana use for...
highschoolR Documentation

Highschool data on alcohol, cigarette and marijuana use for highschool seniors

Description

Data from a 1992 survey by the Wright State University School of Medecine and the United Health Services in Dayton, Ohio. The survey asked 2276 students in their final year of highschool in a nonurban area near Dayton, Ohio, whether they had ever used alcohol, cigarettes, or marijuana.

Usage

data(highschool)

Format

A data frame of 8 observations on the variables:

alcohol

a factor vector with components "yes" or "no".

cigarette

a factor vector with components "yes" or "no".

marijuana

a factor vector with components "yes" or "no".

count

a numeric vector of frequencies.

References

Agresti A. (2002). Categorical data analysis, Wiley, p. 322.

Examples

data(highschool)

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(IndependenceTests)
Loading required package: xtable
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/IndependenceTests/highschool.Rd_%03d_medium.png", width=480, height=480)
> ### Name: highschool
> ### Title: Highschool data on alcohol, cigarette and marijuana use for
> ###   highschool seniors
> ### Aliases: highschool
> ### Keywords: datasets
> 
> ### ** Examples
> 
> data(highschool)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>