From dc1b41e771c092f7b437fd493c85e7650ad1e27e Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Thu, 3 Jul 2014 07:51:18 +0200 Subject: Add a more complex usage example --- README.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index bf6b7b82..4d394808 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,23 @@ A very simple usage example would be summary(SFO.fit) plot(SFO.fit) -For more examples have a look at the examples provided in the +A fairly complex usage example using a built-in dataset: + + data <- mkin_wide_to_long(schaefer07_complex_case, time = "time") + + model <- mkinmod( + parent = list(type = "SFO", to = c("A1", "B1", "C1"), sink = FALSE), + A1 = list(type = "SFO", to = "A2"), + B1 = list(type = "SFO"), + C1 = list(type = "SFO"), + A2 = list(type = "SFO"), use_of_ff = "max") + + fit <- mkinfit(model, data, method.modFit = "Port") + + plot(fit, show_residuals = TRUE) + s <- summary(fit) + +For more examples and to see results, have a look at the examples provided in the [`mkinfit`](http://kinfit.r-forge.r-project.org/mkin_static/mkinfit.html) documentation or the package vignettes referenced from the -- cgit v1.2.1