Last data update: 2014.03.03

R: Education backgrounds of parents of entering freshmen at a...
ParentedR Documentation

Education backgrounds of parents of entering freshmen at a state university

Description

Data for Exercise 1.32

Usage

Parented

Format

A data frame with 6 observations on the following 3 variables.

Educat

a factor with levels 4yr college degree Doctoral degree Grad degree H.S grad or less Some college Some grad school

Mother

a numeric vector

Father

a numeric vector

Source

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Duxbury

Examples

str(Parented)
attach(Parented)
MAT <- cbind(Mother, Father)
row.names(MAT) <- Educat 
MAT 
barplot(t(MAT),beside=TRUE,legend=TRUE,col=c("blue","red")) 
detach(Parented) 
remove(MAT)

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(BSDA)
Loading required package: e1071
Loading required package: lattice

Attaching package: 'BSDA'

The following object is masked from 'package:datasets':

    Orange

> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/BSDA/Parented.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Parented
> ### Title: Education backgrounds of parents of entering freshmen at a state
> ###   university
> ### Aliases: Parented
> ### Keywords: datasets
> 
> ### ** Examples
> 
> str(Parented)
'data.frame':	6 obs. of  3 variables:
 $ Educat: Factor w/ 6 levels "4yr college degree",..: 4 5 1 6 3 2
 $ Mother: num  0.23 0.33 0.25 0.05 0.13 0.01
 $ Father: num  0.2 0.25 0.28 0.04 0.17 0.06
> attach(Parented)
The following object is masked from package:BSDA:

    Educat

> MAT <- cbind(Mother, Father)
> row.names(MAT) <- Educat 
> MAT 
                   Mother Father
H.S grad or less     0.23   0.20
Some college         0.33   0.25
4yr college degree   0.25   0.28
Some grad school     0.05   0.04
Grad degree          0.13   0.17
Doctoral degree      0.01   0.06
> barplot(t(MAT),beside=TRUE,legend=TRUE,col=c("blue","red")) 
> detach(Parented) 
> remove(MAT)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>