Learn R Programming

vibass (version 1.0.1)

Weights: Weights of children

Description

Data for the VIBASS session on linear models. This is a simulated dataset that includes data about children. The variables in the dataset are:

Usage

data("Weights")

Arguments

Format

An object of class "data.frame".

Details

  • age. Age (in years).

  • vegetables. Measure of vegetables consumption.

  • weight. Weight (in kg).

  • sex. Girl or Boy.

  • height. Height (in cm).

  • ethnicity Asian, Black or European.

Examples

Run this code
data(Weights)
summary(Weights)

# ML estimates
lmW <- lm(weight ~ age, data = Weights)
summary(lmW)

Run the code above in your browser using DataLab