Learn R Programming

hhcartr (version 1.0.0)

balance: Balance Scale Dataset.

Description

This data set was generated to model psychological experimental results. Each example is classified as having the balance scale tip to the right, tip to the left, or be balanced. The attributes are the left weight, the left distance, the right weight, and the right distance. The correct way to find the class is the greater of (left-distance x left-weight) and (right-distance x right-weight). If they are equal, it is balanced.

Usage

data(balance)

Arguments

Format

A data frame with 625 rows and 4 variables:

Left-Weight

Left-Weight, one of 1, 2, 3, 4, or 5

Left-Distance

Left-Distance, one of 1, 2, 3, 4, or 5

Right-Weight

Right-Weight, one of 1, 2, 3, 4, or 5

Right-Distance

Right-Distance, one of 1, 2, 3, 4, or 5

Class Name

Class Name: one of L, B or R)