plot_td_dcrit_equ: Plot sensitivity function of calculated optimal design to...

View source: R/plot_td_dcrit_equ.R

plot_td_dcrit_equR Documentation

Plot sensitivity function of calculated optimal design to verify optimality

Description

The values at each point (time, dose) is the gradient at the point times the inverse of the FIM of the calculated optimal design (at the assumes parameters) times the gradient. If the resulting surface is below zero, the design is optimal and in the support points the value is zero.
Due to computational inaccuracies, the maximal value is usually not exactly zero.

Usage

plot_td_dcrit_equ(
  td_opt_des,
  time_lim = NULL,
  dose_lim = NULL,
  n_grid = 61,
  title = NULL,
  return_values = FALSE,
  plot_theta = 120,
  plot_phi = 30,
  plot_r = sqrt(3)
)

Arguments

td_opt_des

Optimal design for td2pLL model calculated with td_opt

time_lim

(numeric(2))
Lower and upper bound of the time component.

dose_lim

(numeric(2))
Lower and upper bound of the dose component.

n_grid

(numeric(1))
The values will be calculates on a n_grid time n_grid grid.

title

(character(1))
Optional plot title. By default, the maximal value and its position are displayed in the title.

return_values

(logical(1))
Defines if the values of the points are returned.

plot_theta, plot_phi, plot_r

Angles theta, phi and r passed to persp


jcduda/td2pLL documentation built on May 14, 2022, 6:48 p.m.