Learn R Programming

HelpersMG (version 5.1)

predict.LD50: Estimate survival according to doses

Description

Estimate survival according to doses. The returned data.frame has the following components: doses, SE, survival, CI.minus.sexratio, CI.plus.sexratio, range.CI

Usage

# S3 method for LD50
predict(
  object,
  doses = NULL,
  SE = NULL,
  range.CI = 0.95,
  replicates = 1000,
  progressbar = FALSE,
  ...
)

Arguments

object

A result file generated by LD50

doses

A vector of temperatures

SE

The standard error for doses, optional

range.CI

The range of confidence interval for estimation, default=0.95

replicates

Number of replicates to estimate CI

progressbar

Logical. Does a progression bar must be shown

...

Not used

Value

A data.frame with informations about survival

Details

predict.LD50 Estimate survival according to doses

See Also

Other LD50 functions: LD50_MHmcmc_p(), LD50_MHmcmc(), LD50(), logLik.LD50(), plot.LD50()

Examples

Run this code
# NOT RUN {
#' data <- data.frame(Doses=c(80, 120, 150, 150, 180, 200),
Alive=c(10, 12, 8, 6, 2, 1),
Dead=c(0, 1, 5, 6, 9, 15))
LD50_logistic <- LD50(data, equation="logistic")
predict(LD50_logistic, doses=c(140, 170))
plot(LD50_logistic
# }

Run the code above in your browser using DataLab