Learn R Programming

bayesmix (version 0.7-6)

fish: Fish length data

Description

A numeric vector containing 256 observations of fish lengths.

Usage

data(fish)

Arguments

Format

A numeric vector of length 256.

Details

This data set can be used for modeling unobserved heterogeneity, as it can be assumed that underlying categories present in the data are the age groups to which the fish belong.

Examples

Run this code
data("fish", package = "bayesmix")
ss <- seq(-3, 13, by = 0.01)
hist(fish[[1]], 20, freq = FALSE, main = "Fish data")
lines(ss, dnorm(ss, mean(fish[[1]]), sd(fish[[1]])), col = "red")

Run the code above in your browser using DataLab