R/Fx_ItoA.R

Defines functions Fx_ItoA

Documented in Fx_ItoA

Fx_ItoA <- function(Fx, echo=TRUE) {
  # Transformation of Fx for I-optimality  
  
  cl <- match.call()
  verify(cl, Fx = Fx, echo = echo)
  n <- nrow(Fx); m <- ncol(Fx)
  L <- m*infmat(Fx, rep(1, n), echo = FALSE)/sum(Fx^2)
  if (rcond(L) <  sqrt(.Machine$double.eps))
    warning("The problem of I-optimality may be badly conditioned.")
  
  return(as.matrix(Fx %*% solve(chol(L))))
}

Try the OptimalDesign package in your browser

Any scripts or data that you put into this service are public.

OptimalDesign documentation built on March 26, 2020, 9:35 p.m.