set_default_level_occurrence {spdesign}R Documentation

Sets the default level occurrence in an attribute level balanced design

Description

The function sets the default level occurrence of an attribute when a design is restricted to be attribute level balanced. If the design cannot be attribute level balanced, then the restriction will be relaxed for each attribute failing to meet this criteria. Specifically, the code will impose a minimum range of how often an attribute level can occur. This will secure that the design is near attribute level balanced. In this case a warning is issued.

Usage

set_default_level_occurrence(n_lvls, rows)

Arguments

n_lvls

An integer giving the number of levels for the considered attribute

rows

Number of rows in the design

Value

A named list of lists where the top level gives the attribute and the lower level gives the times or range each attribute level should occur in the design


[Package spdesign version 0.0.3 Index]