estModel <- function(modelList, choiceModel, estY,h){
accFit <- tryCatch({
accuracy(modelList[[choiceModel]](estY))
}, error = function(estY){
rep(10000,7) # revert to stupidly high fit function
})
return(accFit)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.