Nothing
p_nca_sfa <-
function (loop.data, bn.data) {
x <- loop.data$x
y <- loop.data$y
sfa <- NULL
options(warn=-1)
type <- ifelse(loop.data$flip.y, "cost", "production")
try(sfa <- sfa(y~x, form=type, silent=TRUE))
options(warn=0)
if (is.null(sfa)) {
warning("Ignoring SFA due to errors", call.=FALSE)
return(list(line=NULL, ceiling=NA, slope=NA, effect=NA,
intercept=NA, above=NA, ineffs=list(x=NA, y=NA, abs=NA, rel=NA),
bottleneck=NULL))
}
intercept <- unname(coef(sfa)["Intercept"])
slope <- unname(coef(sfa)["x"])
ceiling <- p_ceiling(loop.data, slope, intercept)
effect <- ceiling / loop.data$scope.area
above <- p_above(loop.data, slope, intercept)
accuracy <- p_accuracy(loop.data, above)
fit <- get_fit(ceiling, loop.data$ce_fdh_ceiling)
ineffs <- p_ineffs(loop.data, slope, intercept)
bottleneck <- p_bottleneck(loop.data, bn.data, slope, intercept)
sfa$coef <- sfa$coef[c(-3, -4)]
return(list(line=sfa,
slope=slope, intercept=intercept,
ceiling=ceiling, effect=effect,
above=above, accuracy=accuracy, fit=fit,
ineffs=ineffs, bottleneck=bottleneck))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.