aboutsummaryrefslogtreecommitdiff
path: root/R/nafta.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2019-02-26 09:12:50 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2019-02-26 09:12:50 +0100
commit6693ee373c61d716e877386d6be16e3f9f0f40ab (patch)
tree7e1e8607c96b459878ca81e9b183795399aeb516 /R/nafta.R
parent885ea2cd3392e57efff72e5094643917d6ba2be8 (diff)
Add another NAFTA dataset + test
Diffstat (limited to 'R/nafta.R')
-rw-r--r--R/nafta.R3
1 files changed, 2 insertions, 1 deletions
diff --git a/R/nafta.R b/R/nafta.R
index 2af2404f..03bd77c1 100644
--- a/R/nafta.R
+++ b/R/nafta.R
@@ -49,7 +49,7 @@ nafta <- function(ds, title = NA, quiet = FALSE) {
result$S["IORE"]
result$S_c <- result$S[["IORE"]] * (1 + p/(n - p) * qf(0.5, p, n - p))
- result$t_rep <- .evaluate_nafta_results(result$S, result$S_c,
+ result$t_rep <- .evaluate_nafta_results(result$S, result$S_c,
result$distimes, quiet = quiet)
class(result) <- "nafta"
@@ -67,6 +67,7 @@ plot.nafta <- function(x, legend = FALSE, main = "auto", ...) {
print.nafta <- function(x, quiet = TRUE, ...) {
cat("Sums of squares:\n")
print(x$S)
+ cat("\nCritical sum of squares for checking the SFO model:\n")
print(x$S_c)
cat("\nParameters:\n")
print(x$parameters)

Contact - Imprint