Last data update: 2014.03.03

R: Arterial blood pressure of 11 subjects before and after...
OxytocinR Documentation

Arterial blood pressure of 11 subjects before and after receiving oxytocin

Description

Data for Exercise 7.86

Usage

Oxytocin

Format

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

Subject

a numeric vector

Before

a numeric vector

After

a numeric vector

Source

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

Examples

str(Oxytocin)
attach(Oxytocin)
DIF <- Before - After
qqnorm(DIF)
qqline(DIF)
shapiro.test(DIF)
t.test(Before,After,paired=TRUE)
detach(Oxytocin)

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/Oxytocin.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Oxytocin
> ### Title: Arterial blood pressure of 11 subjects before and after
> ###   receiving oxytocin
> ### Aliases: Oxytocin
> ### Keywords: datasets
> 
> ### ** Examples
> 
> str(Oxytocin)
'data.frame':	11 obs. of  3 variables:
 $ Subject: int  1 2 3 4 5 6 7 8 9 10 ...
 $ Before : int  95 173 94 97 81 100 97 104 72 101 ...
 $ After  : int  55 90 36 59 46 46 49 92 23 55 ...
> attach(Oxytocin)
> DIF <- Before - After
> qqnorm(DIF)
> qqline(DIF)
> shapiro.test(DIF)

	Shapiro-Wilk normality test

data:  DIF
W = 0.94464, p-value = 0.5765

> t.test(Before,After,paired=TRUE)

	Paired t-test

data:  Before and After
t = 8.506, df = 10, p-value = 6.854e-06
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 33.34646 57.01717
sample estimates:
mean of the differences 
               45.18182 

> detach(Oxytocin)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>