diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2014-07-03 07:51:18 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2014-07-03 07:51:18 +0200 |
commit | dc1b41e771c092f7b437fd493c85e7650ad1e27e (patch) | |
tree | a843ff63cab571963d1a0b78934e1735e6c10e8b | |
parent | 29e5940b778d3d7a3878a360af449b1c78580234 (diff) |
Add a more complex usage example
-rw-r--r-- | README.md | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -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 |