Skip to content
Snippets Groups Projects
Commit 395f8069 authored by Sebastian Henz's avatar Sebastian Henz
Browse files

predict_mixture() returns stresses

parent 804b9cde
No related branches found
No related tags found
1 merge request!29v2.7.0 - return stresses of predict_mixture()
...@@ -2,7 +2,7 @@ Package: stressaddition ...@@ -2,7 +2,7 @@ Package: stressaddition
Type: Package Type: Package
Title: Modeling Tri-Phasic Concentration-Response Relationships Title: Modeling Tri-Phasic Concentration-Response Relationships
Version: 2.6.0.9000 Version: 2.6.0.9000
Date: 2020-04-07 Date: 2020-04-17
Authors@R: c(person("Sebastian", Authors@R: c(person("Sebastian",
"Henz", "Henz",
role = c("aut", "cre"), role = c("aut", "cre"),
......
# stressaddition (development version) # stressaddition (development version)
* Fixed some spelling mistakes. * Fixed some spelling mistakes.
* `predict_mixture()` now also returns the various stresses.
# stressaddition 2.6.0 # stressaddition 2.6.0
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#' this should be 100 (the default). #' this should be 100 (the default).
#' #'
#' @return A data frame with columns of the supplied concentrations and the #' @return A data frame with columns of the supplied concentrations and the
#' corresponding mixture effects. #' corresponding mixture effects and stresses.
#' #'
#' @examples toxicant_a <- ecxsys( #' @examples toxicant_a <- ecxsys(
#' concentration = c(0, 0.05, 0.5, 5, 30), #' concentration = c(0, 0.05, 0.5, 5, 30),
...@@ -132,9 +132,16 @@ predict_mixture <- function(model_a, ...@@ -132,9 +132,16 @@ predict_mixture <- function(model_a,
stress_total <- stress_tox_total + sys_total stress_total <- stress_tox_total + sys_total
effect <- stress_to_effect(stress_total) * effect_max effect <- stress_to_effect(stress_total) * effect_max
# Setting row.names to NULL to prevent row names when one of the data.frame(
# concentrations is a single number. concentration_a = concentration_a,
data.frame(concentration_a, concentration_b, effect, row.names = NULL) concentration_b = concentration_b,
effect = effect,
stress_tox_sam = stress_tox_sam,
stress_tox_ca = stress_tox_ca,
stress_tox = stress_tox_total,
sys = sys_total,
stress_total = stress_total
)
} }
......
...@@ -66,7 +66,7 @@ A list (of class ecxsys) containing many different objects of which ...@@ -66,7 +66,7 @@ A list (of class ecxsys) containing many different objects of which
} }
} }
\description{ \description{
The ECx-SyS model for modeling concentration-effect relationships whith The ECx-SyS model for modeling concentration-effect relationships with
hormesis. hormesis.
} }
\details{ \details{
......
...@@ -30,7 +30,7 @@ this should be 100 (the default).} ...@@ -30,7 +30,7 @@ this should be 100 (the default).}
} }
\value{ \value{
A data frame with columns of the supplied concentrations and the A data frame with columns of the supplied concentrations and the
corresponding mixture effects. corresponding mixture effects and stresses.
} }
\description{ \description{
Given the ecxsys models of two toxicants this method predicts the effects of Given the ecxsys models of two toxicants this method predicts the effects of
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment