Last data update: 2014.03.03

R: Reading scores before and after vocabulary training for 14...
VocabR Documentation

Reading scores before and after vocabulary training for 14 employees who did not complete high school

Description

Data for Exercise 7.80

Usage

Vocab

Format

A data frame with 14 observations on the following 2 variables.

First

a numeric vector

Second

a numeric vector

Source

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

Examples

str(Vocab)
attach(Vocab)
DIF <- Second - First
qqnorm(DIF)
qqline(DIF)
shapiro.test(DIF)
t.test(Second,First,paired=TRUE)
detach(Vocab)
remove(DIF)

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/Vocab.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Vocab
> ### Title: Reading scores before and after vocabulary training for 14
> ###   employees who did not complete high school
> ### Aliases: Vocab
> ### Keywords: datasets
> 
> ### ** Examples
> 
> str(Vocab)
'data.frame':	14 obs. of  2 variables:
 $ First : int  84 55 43 64 72 65 72 52 49 80 ...
 $ Second: int  86 52 50 72 70 67 80 50 62 81 ...
> attach(Vocab)
> DIF <- Second - First
> qqnorm(DIF)
> qqline(DIF)
> shapiro.test(DIF)

	Shapiro-Wilk normality test

data:  DIF
W = 0.90487, p-value = 0.1327

> t.test(Second,First,paired=TRUE)

	Paired t-test

data:  Second and First
t = 2.2958, df = 13, p-value = 0.03896
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 0.2275911 7.4866946
sample estimates:
mean of the differences 
               3.857143 

> detach(Vocab)
> remove(DIF)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>