design

Module for utility functions related to the design matrices.

Functions

create_default_coords(effect_type)

Defines the default possible coordinates per effect type.

decode_design(Yenc, effect_types[, coords])

Decode the design according to the effect types.

encode_design(Y, effect_types[, coords])

Encode the design according to the effect types.

force_Zi_asc(Zi)

Force ascending groups.

obs_var_from_Zs(Zs, N[, ratios, include_error])

Computes the observation covariance matrix from the different groupings.

x2fx(Yenc, modelenc)

Create the model matrix from the design matrix and model specification.