create_default_coords

pyoptex.utils.design.create_default_coords(effect_type)[source]

Defines the default possible coordinates per effect type. A continuous variable has [-1, 0, 1], a categorical variable is an array from 1 to the number of categorical levels.

Parameters

effect_typeint

The type of the effect. 1 indicates continuous, higher indicates categorical with that number of levels.

Returns

coordsnp.array(1d, 1)

The default possible coordinates for the factor. Each row represents a coordinate.