# NOT RUN {
# Using a data set which is included in this package. See ?multiple_stress
ms <- multiple_stress
esfen <- ms[ms$food == 1 & ms$prochloraz == 0, ]
proch <- ms[ms$food == 1 & ms$esfenvalerate == 0, ]
model_esfen <- ecxsys(
concentration = esfen$esfenvalerate,
survival_tox_observed = esfen$survival,
hormesis_concentration = 0.1
)
model_proch <- ecxsys(
concentration = proch$prochloraz,
survival_tox_observed = proch$survival,
hormesis_concentration = 100
)
# Predict the survival at 8 different esfenvalerate concentrations
# but keep the prochloraz concentration constant at 32:
mt <- multi_tox(
model_esfen,
model_proch,
c(0, 0.0001, 0.001, 0.01, 0.1, 0.316, 1, 3.16),
32,
sa_contribution = 0.8
)
mt[1:3] # The concentrations and survival of the 8 mixtures.
# Predict the survival at 4 different combinations
# of esfenvalerate and prochloraz:
mt <- multi_tox(
model_esfen,
model_proch,
c(0.1, 0.2, 0.3, 0.4),
c(0, 1, 32, 100),
sa_contribution = 0.8
)
mt[1:3] # The concentrations and survival of the 4 mixtures.
# }
Run the code above in your browser using DataLab