aboutsummaryrefslogtreecommitdiff
path: root/inst
diff options
context:
space:
mode:
Diffstat (limited to 'inst')
-rw-r--r--inst/GUI/simple.R17
1 files changed, 17 insertions, 0 deletions
diff --git a/inst/GUI/simple.R b/inst/GUI/simple.R
index 54fea68..8947972 100644
--- a/inst/GUI/simple.R
+++ b/inst/GUI/simple.R
@@ -432,5 +432,22 @@ update_m_editor <- function() {
# 3}}}
# 2}}}
+# Fit the models to the data {{{1
+mf <- gnotebook(cont = g)
+fits <- s <- s.gt <- list()
+override <- function(d) {
+ data.frame(name = d$name, time = d$time,
+ value = ifelse(d$override == "NA", d$value, d$override),
+ weight = d$weight)
+}
+fits[[1]] <- mkinfit(m[[1]], override(ds[[1]]$data), err = "weight")
+fits[[1]]$name <- "SFO fit to FOCUS dataset A"
+s[[1]] <- summary(fits[[1]])
+for (i in 1:length(fits)) {
+ fits[[i]] <- gframe(fits[[1]]$name, cont = mf, label = i)
+ s.tmp <- capture.output(print(s[[i]]))
+ s.gt[[i]] <- gtext(s.tmp, width = 600, cont = fits[[i]],
+ use.codemirror = TRUE)
+}
# 1}}}
# vim: set foldmethod=marker ts=2 sw=2 expandtab:

Contact - Imprint