design_efficiency: Efficiency between optimal design and a user given design

View source: R/crit_eff.R

design_efficiencyR Documentation

Efficiency between optimal design and a user given design

Description

Takes an optimal design provided from the function opt_des and a user given design and compares their efficiency

Usage

design_efficiency(design, opt_des_obj)

Arguments

design

dataframe that represents the design. Must have two columns:

  • Point contains the support points of the design.

  • Weight contains the corresponding weights of the Points.

opt_des_obj

an object given by the function opt_des.

Value

The efficiency as a value between 0 and 1

See Also

opt_des

Examples

result <- opt_des("D-Optimality", y ~ a * exp(-b / x), c("a", "b"), c(1, 1500), c(212, 422))
design <- data.frame("Point" = c(220, 240, 400), "Weight" = c(1 / 3, 1 / 3, 1 / 3))
design_efficiency(design, result)

Kezrael/optedr documentation built on Feb. 17, 2025, 1:37 a.m.