Learn R Programming

dst (version 1.8.0)

swr: The Captain's Problem. swr: Relation between variables Sailing delay (S), Weather at sea (W), and Repairs at sea (R)

Description

This dataset is the tt matrix establishing a relation between S, W and R, where S = 0:3, W = (foul, fair) and R = (true, false). The goal of this relation is to account for other causes of sailing delay. All the elements (s,w,r) of (S x W x R) where W or R is true add one day of sailing delay. We put a mass value of 0.9 to this subset. The remaining mass of 0.1 is allotted to the frame.

Usage

swr

Arguments

Format

An integer matrix with 6 rows and 10 columns.

[1,c(1,2)]

value = 0, not used

[1,3:10]

Identification numbers of the three variables. Column 3 to 6: variable 3; columns 7,8: variable 7, columns 9,10: variable 8

nospec

identification number of the specification

m

the value of the specification, a number between 0 and 1

3

1 if 3 is part of the specification, 0 otherwise

2

1 if 2 is part of the specification, 0 otherwise

1

1 if 1 is part of the specification, 0 otherwise

0

1 if 0 is part of the specification, 0 otherwise

foul

1 if foul is part of the specification, 0 otherwise

fair

1 if fair is part of the specification, 0 otherwise

true

1 if true is part of the specification, 0 otherwise

false

1 if false is part of the specification, 0 otherwise

Author

Claude Boivin, Stat.ASSQ

Details

To construct the tt matrix, we put the variables S, W, R side by side, as in a truth table representation. Each triplet of the subset is described by a row of the matrix as a vector of zeros and ones.