utils

Module for all utility functions of the split^k-plot algorithm

Functions

extend_design(Y, plot_sizes, new_plot_sizes, ...)

Extend an existing design Y with initial plot sizes (plot_sizes) to a new design with new_plot_sizes.

level_grps(s0, s1)

Determines which groups should be updated per level considering the old plot sizes and the new (after augmentation).

min_plot_levels(tppl)

Computes the required number of degrees of freedom at each plot level in order to estimate all fixed effects and variances of the random effects.

obs_var(plot_sizes[, ratios])

Directly computes the observation matrix from the design.

obs_var_Zs(plot_sizes)

Create the grouping matrices (1D array) for each plot according to the provided plot sizes.

terms_per_plot_level(factors, model)

Computes the number of coefficients to be estimated per plot level (excluding any degrees of freedom required for the estimation of the variance components).

validate_plot_sizes(factors, model)

Validates that this configuration of split-plot sizes can estimate all fixed effects and variances of the random effects.

Classes

Parameters(fn, factors, nruns, effect_types, ...)

Plot(*args, **kwargs)

Update(level, grp, run_start, run_end, ...)