diff options
Diffstat (limited to 'R/nafta.R')
-rw-r--r-- | R/nafta.R | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,8 +42,8 @@ nafta <- function(ds, title = NA, quiet = FALSE, ...) { # Compare the sum of squared residuals (SSR) to the upper bound of the # confidence region of the SSR for the IORE model - result$S <- sapply(result$mmkin, function(x) x$ssr) - names(result$S) <- models + result$S <- sapply(result$mmkin, function(x) sum(x$data$residual^2)) + names(result$S) <- c("SFO", "IORE", "DFOP") # Equation (3) on p. 3 p <- 3 result$S["IORE"] |