aboutsummaryrefslogtreecommitdiff
path: root/docs/articles/FOCUS_D.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2016-10-26 23:18:20 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2016-10-26 23:18:20 +0200
commit8f38147e145c66ebd27f5d9fcc6f00172c25872f (patch)
tree35123308ef781f6ad4b83b6d421d5e0e35d2e574 /docs/articles/FOCUS_D.R
parentd106bebafe070cb803dd7205b1581b20eaf61cb5 (diff)
Static documentation rebuilt by pkgdown::build_site()
Diffstat (limited to 'docs/articles/FOCUS_D.R')
-rw-r--r--docs/articles/FOCUS_D.R24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/articles/FOCUS_D.R b/docs/articles/FOCUS_D.R
new file mode 100644
index 00000000..c3881e80
--- /dev/null
+++ b/docs/articles/FOCUS_D.R
@@ -0,0 +1,24 @@
+## ---- include = FALSE----------------------------------------------------
+library(knitr)
+opts_chunk$set(tidy = FALSE, cache = TRUE)
+
+## ----data----------------------------------------------------------------
+library("mkin")
+print(FOCUS_2006_D)
+
+## ----model---------------------------------------------------------------
+SFO_SFO <- mkinmod(parent = mkinsub("SFO", "m1"), m1 = mkinsub("SFO"))
+print(SFO_SFO$diffs)
+
+## ----fit-----------------------------------------------------------------
+fit <- mkinfit(SFO_SFO, FOCUS_2006_D, quiet = TRUE)
+
+## ----plot, fig.height = 5------------------------------------------------
+plot(fit, show_residuals = TRUE)
+
+## ----plot_2, fig.height = 4----------------------------------------------
+mkinparplot(fit)
+
+## ------------------------------------------------------------------------
+summary(fit)
+

Contact - Imprint