R/d_opt.R

Defines functions d_opt

Documented in d_opt

#' Determinant of Inverse of Info. Matrix
#' 
#' Given a deisgn encoded with 0,1,2 this will calculate the value of the inverse information matrix
#' 
#' @param design The encoded design matrix
#' 
#' @return Determant value
#' 
#' @examples 
#' \dontrun{
#' j <- ran_D(20, 4)
#' d_opt(j)
#' }


d_opt <- function(design){
  d <- cbind(1, g_matrix_convert(design))
  val <- det(solve(t(d) %*% d))
  return(val)
}
  
vinny-paris/optrotvec documentation built on April 9, 2021, 4:34 a.m.