Last data update: 2014.03.03

R: Example univariate response data with outlier for MRPP
example4R Documentation

Example univariate response data with outlier for MRPP

Description

Hypothetical univariate response data in 2 groups with 1 outlier (Mielke 1986).

Usage

data(example4)

Format

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

group

Grouping variable (1 or 2).

response

Unvariate response variable.

Source

Mielke, P.W. 1986. Non-metric statistical analyses: some metric alternatives. Journal of Statistical Planning and Inference 13, 377–387.

Examples


par(mfrow = c(2,1))

hist(example4$response[example4$group==1],breaks = 6,xlim = c(12,17),
  ylim = c(0,7),ylab = "Count",xlab = "",main = "Group 1",col = "blue")

hist(example4$response[example4$group==2],breaks = 25,xlim = c(12,17),
 ylim = c(0,7),ylab = "Count",xlab = "Response",main = "Group 2",col = "blue")

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(Blossom)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Blossom/example4.Rd_%03d_medium.png", width=480, height=480)
> ### Name: example4
> ### Title: Example univariate response data with outlier for MRPP
> ### Aliases: example4
> ### Keywords: datasets
> 
> ### ** Examples
> 
> 
> par(mfrow = c(2,1))
> 
> hist(example4$response[example4$group==1],breaks = 6,xlim = c(12,17),
+   ylim = c(0,7),ylab = "Count",xlab = "",main = "Group 1",col = "blue")
> 
> hist(example4$response[example4$group==2],breaks = 25,xlim = c(12,17),
+  ylim = c(0,7),ylab = "Count",xlab = "Response",main = "Group 2",col = "blue")
> 
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>