Learn R Programming

Blossom (version 1.4)

ex4rank: Example univariate data for MRPP

Description

Hypothetical univariate response data to be compared in 2 groups.

Usage

data(ex4rank)

Arguments

Format

A data frame with 30 observations on the following 3 variables.
group
Grouping variable (1 or 2).
rank
Rank transformation of response variable.
response
Hypothetical response variables.

Source

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

Examples

Run this code
par(mfrow = c(2,1))

hist(ex4rank$rank[ex4rank$group==1],breaks = 10,xlim = c(0,30),
  ylim = c(0,7),ylab = "Count",xlab = "",main = "Group 1",col = "blue")
  
hist(ex4rank$rank[ex4rank$group==2],breaks = 20,xlim = c(0,30),
  ylim = c(0,7),ylab = "Count",xlab = "Rank",main = "Group 2",col = "blue")

Run the code above in your browser using DataLab