crit: Master function for the criterion function

View source: R/crit_eff.R

critR Documentation

Master function for the criterion function

Description

Depending on the criterion input, the function returns the output of the corresponding criterion function given the information matrix.

Usage

crit(criterion, M, k = 0, par_int = c(1), matB = NA)

Arguments

criterion

character variable with the chosen optimality criterion. Can be one of the following:

  • 'D-Optimality'

  • 'Ds-Optimality'

  • 'A-Optimality'

  • 'I-Optimality'

  • 'L-Optimality'

M

information matrix for which the criterion value wants to be calculated.

k

numeric variable with the number of parameters of the model. Taken from the number of rows of the matrix if omitted.

par_int

numeric vector with the index of the parameters of interest of the model. Only for "Ds-Optimality".

matB

optional matrix of dimensions k x k, for I- and L-optimality.

Value

Numeric value of the optimality criterion for the information matrix.


Kezrael/optedr documentation built on Oct. 12, 2024, 8:40 p.m.