Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sample

Simulated Dataset


Description

In the data set sample, we have data from five different probability distributions. Histograms are used to intuitively understand the underlying probability model.

Usage

data(sample)

Format

A data frame with 100 observations on the following 5 variables.

Sample_1

A sample 1

Sample_2

A sample 2

Sample_3

A sample 3

Sample_4

A sample 4

Sample_5

A sample 5

Examples

data(sample)
layout(matrix(c(1,1,2,2,3,3,0,4,4,5,5,0), 2, 6, byrow=TRUE),respect=FALSE) 
matrix(c(1,1,2,2,3,3,0,4,4,5,5,0), 2, 6, byrow=TRUE)
hist(sample[,1],main="Histogram of Sample 1",xlab="sample1", ylab="frequency")
hist(sample[,2],main="Histogram of Sample 2",xlab="sample2", ylab="frequency")
hist(sample[,3],main="Histogram of Sample 3",xlab="sample3", ylab="frequency")
hist(sample[,4],main="Histogram of Sample 4",xlab="sample4", ylab="frequency")
hist(sample[,5],main="Histogram of Sample 5",xlab="sample5", ylab="frequency")

ACSWR

A Companion Package for the Book "A Course in Statistics with R"

v1.0
GPL-2
Authors
Prabhanjan Tattar
Initial release
2015-09-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.