Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stressaddition
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oekotox
stressaddition
Commits
395f8069
Commit
395f8069
authored
4 years ago
by
Sebastian Henz
Browse files
Options
Downloads
Patches
Plain Diff
predict_mixture() returns stresses
parent
804b9cde
No related branches found
No related tags found
1 merge request
!29
v2.7.0 - return stresses of predict_mixture()
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
DESCRIPTION
+1
-1
1 addition, 1 deletion
DESCRIPTION
NEWS.md
+1
-0
1 addition, 0 deletions
NEWS.md
R/predict_mixture.R
+11
-4
11 additions, 4 deletions
R/predict_mixture.R
man/ecxsys.Rd
+1
-1
1 addition, 1 deletion
man/ecxsys.Rd
man/predict_mixture.Rd
+1
-1
1 addition, 1 deletion
man/predict_mixture.Rd
with
15 additions
and
7 deletions
DESCRIPTION
+
1
−
1
View file @
395f8069
...
@@ -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-
0
7
Date: 2020-04-
1
7
Authors@R: c(person("Sebastian",
Authors@R: c(person("Sebastian",
"Henz",
"Henz",
role = c("aut", "cre"),
role = c("aut", "cre"),
...
...
This diff is collapsed.
Click to expand it.
NEWS.md
+
1
−
0
View file @
395f8069
# 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
...
...
This diff is collapsed.
Click to expand it.
R/predict_mixture.R
+
11
−
4
View file @
395f8069
...
@@ -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
)
}
}
...
...
This diff is collapsed.
Click to expand it.
man/ecxsys.Rd
+
1
−
1
View file @
395f8069
...
@@ -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 w
h
ith
The ECx-SyS model for modeling concentration-effect relationships with
hormesis.
hormesis.
}
}
\details{
\details{
...
...
This diff is collapsed.
Click to expand it.
man/predict_mixture.Rd
+
1
−
1
View file @
395f8069
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment