Skip to contents

Algebraic operators on WeightedDesign objects and numeric vectors. WeightedDesigns do not support addition or subtraction.

Usage

# S4 method for class 'WeightedDesign,numeric'
e1 + e2

# S4 method for class 'numeric,WeightedDesign'
e1 + e2

# S4 method for class 'WeightedDesign,numeric'
e1 - e2

# S4 method for class 'numeric,WeightedDesign'
e1 - e2

# S4 method for class 'WeightedDesign,numeric'
e1 * e2

# S4 method for class 'numeric,WeightedDesign'
e1 * e2

# S4 method for class 'WeightedDesign,numeric'
e1/e2

# S4 method for class 'numeric,WeightedDesign'
e1/e2

Arguments

e1, e2

WeightedDesign or numeric objects

Value

a WeightedDesign object

Details

These are primarily used to either combine weights via multiplication, or to invert weights. Addition and subtraction are not supported and will produce errors.