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
Merge requests
!4
improve documentation of all user-facing functions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
improve documentation of all user-facing functions
feature/documentation
into
master
Overview
0
Commits
4
Pipelines
0
Changes
8
Merged
Sebastian Henz
requested to merge
feature/documentation
into
master
5 years ago
Overview
0
Commits
4
Pipelines
0
Changes
8
Expand
Closes
#2 (closed)
.
Edited
5 years ago
by
Sebastian Henz
👍
0
👎
0
Merge request reports
Compare
master
version 1
dc77771f
5 years ago
master (base)
and
latest version
latest version
97d9538b
4 commits,
5 years ago
version 1
dc77771f
1 commit,
5 years ago
8 files
+
203
−
83
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
R/ec.R
+
12
−
12
Options
@@ -2,30 +2,30 @@
#'
#' Estimate the concentration to reach a certain effect relative to the control.
#'
#' If the value occurs multiple times because of hormesis, which may happen for
#' low values of \code{target_effect}, then the first occurrence corresponding
#' to the smaller concentration is returned by default (i.e. the lowest
#' concentration)..
#' If the response level occurs multiple times because of hormesis, which may
#' happen for low values of \code{target_effect}, then the occurrence with the
#' smallest concentration is returned.
#'
#' @param model The object returned from \code{ecxsys()}.
#' @param effect_name The name of the effect for which you want to calculate the
#' EC.
#' EC.
Must be the name of a column in \code{model$curves}.
#' @param target_effect The desired effect percentage between 0 and 100. For
#' example with the value 10 the function will return the EC10, i.e. the
#' concentration where the response falls below 90 % of the maximum possible
#' concentration where the response falls below 90
\
% of the maximum possible
#' response.
#'
#' @return A list
with the elements \code{
concentration
}
and
\code{effect}
#'
giving the effect concentration and the corresponding
effect.
#' @return A list
containing the effect
concentration and
the corresponding
#' effect.
#'
#' @examples
result
<- ecxsys(
#' @examples
model
<- ecxsys(
#' concentration = c(0, 0.03, 0.3, 3, 10),
#' effect_tox_observed = c(85, 76, 94, 35, 0),
#' effect_tox_env_observed = c(24, 23, 32, 0, 0),
#' hormesis_
index
= 3
#' hormesis_
concentration
=
0.
3
#' )
#' # Calculate the EC_10
#' EC_10 <- ec(result, "effect_tox_sys", 10)
#' # Calculate the EC_10, the concentration where the effect falls
#' # below 90 % of the effect in the control:
#' ec_10 <- ec(model, "effect_tox_sys", 10)
#'
#' @export
ec
<-
function
(
model
,
effect_name
,
target_effect
)
{
Loading