Learn R Programming

HelpersMG (version 5.1)

LD50_MHmcmc_p: Generates set of parameters to be used with LD50_MHmcmc()

Description

Interactive script used to generate set of parameters to be used with LD50_MHmcmc().

Usage

LD50_MHmcmc_p(
  result = stop("An output from LD50() must be provided"),
  accept = FALSE
)

Arguments

result

An object obtained after a LD50 fit

accept

If TRUE, the script does not wait user information

Value

A matrix with the parameters

Details

LD50_MHmcmc_p generates set of parameters to be used with LD50_MHmcmc()

See Also

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

Examples

Run this code
# NOT RUN {
library("HelpersMG")
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")
pmcmc <- LD50_MHmcmc_p(LD50_logistic, accept=TRUE)
# }

Run the code above in your browser using DataLab