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(opt_des_obj, design)

Arguments

opt_des_obj

an object given by the function opt_des.

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.

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(result, design)

optedr documentation built on Nov. 18, 2022, 5:12 p.m.