powered by
Calibrate binomial assays, generalizing the calculation of LD50 based on a logistic regression model.
ld50.logit(ndead, ntotal, dose, cf = 1:2, p = 0.5)
A vector of number of failures.
Total number of trials.
A vector of dosages.
The terms in the coefficient vector giving the intercept and coefficient of (log-)dose
Probabilities at which to predict the dose needed.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Springer.
# NOT RUN { ldose <- rep(0:5, 2) numdead <- c(1, 4, 9, 13, 18, 20, 0, 2, 6, 10, 12, 16) n=20 ld50.logit(numdead,n,ldose,p = 0.5) # }
Run the code above in your browser using DataLab