tunable_parameters: Switch between numeric and S4 class representation of a...

Description Usage Arguments Details See Also Examples

Description

Get tunable parameters of a design as numeric vector via tunable_parameters or update a design object with a suitable vector of values for its tunable parameters.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
tunable_parameters(object, ...)

## S4 method for signature 'TwoStageDesign'
tunable_parameters(object, ...)

## S4 method for signature 'TwoStageDesign'
update(object, params, ...)

## S4 method for signature 'OneStageDesign'
update(object, params, ...)

Arguments

object

TwoStageDesign object to update

...

further optional arguments

params

vector of design parameters, must be in same order as returned by
tunable_parameters

Details

The tunable slot of a TwoStageDesign stores information about the set of design parameters which are considered fixed (not changed during optimization) or tunable (changed during optimization). For details on how to fix certain parameters or how to make them tunable again, see make_fixed and make_tunable.

See Also

TwoStageDesign

Examples

1
2
3
4
design  <- TwoStageDesign(25, 0, 2, 25, 2, order = 5)
tunable_parameters(design)
design2 <-update(design, tunable_parameters(design) + 1)
tunable_parameters(design2)

adoptr documentation built on June 28, 2021, 5:11 p.m.