SoyaData: SoyaData: Piglets on Different Diets

SoyaDataR Documentation

SoyaData: Piglets on Different Diets

Description

Six piglets of equal weight were randomly sampled from the same litter, and given three different diets. Two of the diets had different soya proteins (S1 and S2), and one diet had no soya included (NONS). The weight of the piglets was measured after a month.

Usage

SoyaData

Format

A data frame with 6 observations (rows) and 2 variables (columns).

Column name Data type Description Values
[,1] Diet character 3 different diets ("NONS", "S1", "S2")
[,2] Weight numeric Weight of the piglets in kg (80 - 86)

Details

This is example data created by a STAT210 teacher, and used in Exercises for STAT210 (exercise 4 and 6) in August 2022.

Source

The data is created by Lars Erik Gangsei.

Examples


# Linear model
lm(Weight ~ Diet, data = SoyaData)

# Weight based on the different diets
boxplot(Weight ~ Diet, data = SoyaData)


thoree/stat340 documentation built on June 30, 2024, 4:04 p.m.