diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2015-05-19 10:46:30 +0200 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2015-05-19 10:46:30 +0200 |
commit | e338c9a5a8da42e5f7b8940b96d150752767d75a (patch) | |
tree | d9d9f6b5b0bbb2c32baf4b8f4d3d6d5a58dcc7c3 /man/mkinmod.Rd | |
parent | 01d0f98ad63ebd1ff9a067cba374d1dbed7383d1 (diff) |
Include output in README, use mkinsub() in example code
Diffstat (limited to 'man/mkinmod.Rd')
-rw-r--r-- | man/mkinmod.Rd | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/man/mkinmod.Rd b/man/mkinmod.Rd index 4de4c98a..f6a8fe5d 100644 --- a/man/mkinmod.Rd +++ b/man/mkinmod.Rd @@ -77,12 +77,30 @@ mkinmod(..., use_of_ff = "min", speclist = NULL, quiet = FALSE) Johannes Ranke
}
\examples{
-# Specify the SFO model
+# Specify the SFO model (this is not needed any more, as we can now mkinfit("SFO", ...)
SFO <- mkinmod(parent = list(type = "SFO"))
# One parent compound, one metabolite, both single first order.
SFO_SFO <- mkinmod(
+ parent = mkinsub("SFO", "m1"),
+ m1 = mkinsub("SFO"))
+
+# The above model used to be specified like this, before the advent of mkinsub()
+SFO_SFO <- mkinmod(
parent = list(type = "SFO", to = "m1"),
m1 = list(type = "SFO"))
+
+# If we have several parallel metabolites
+# (compare tests/testthat/test_synthetic_data_for_UBA_2014.R)
+m_synth_DFOP_par <- mkinmod(parent = mkinsub("DFOP", c("M1", "M2")),
+ M1 = mkinsub("SFO"),
+ M2 = mkinsub("SFO"),
+ use_of_ff = "max", quiet = TRUE)
+
+\dontrun{
+fit_DFOP_par_c <- mkinfit(m_synth_DFOP_par,
+ synthetic_data_for_UBA_2014[[12]]$data,
+ quiet = TRUE)
+}
}
\keyword{ models }
|