getThetaG <- function(theta, useEigen=NULL) {
thetaNam <- names(theta$b)
sm <- !is.na(theta$cost)
X <- theta$MCgpar[thetaNam,sm]
Y <- theta$HE[,sm]
getEsensitivity(X, Y, useEigen=useEigen)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.