Learn R Programming

Blossom (version 1.4)

example4: Example univariate response data with outlier for MRPP

Description

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

Usage

data(example4)

Arguments

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

Run this code

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")

Run the code above in your browser using DataLab