data(cytotox)
## example 1
# Fit the concentration-response data of heavy metal Ni(2+) on MCF-7 cells
# Logit equation is selected as the fitting function with a starting value of 12 and 3.
x <- cytotox$Ni$x
expr <- cytotox$Ni$y
curveFit(x, expr, eq = 'Logit', param = c(12, 3), effv = 0.5)
## example 2
# Fit the concentration-response data of heavy metal Ni(2+) on MCF-7 cells.
# Calculate the concentrations that cause 5\% and 50\% inhibition of the growth of MCF-7 and
# corresponding confidence intervals.
x <- cytotox$Ni$x
expr <- cytotox$Ni$y
curveFit(x, expr, eq = 'Logit', param = c(12, 3), effv = c(0.05, 0.5))
## example 3
# Fit the concentration-response data of ion liquid Omim on MCF-7 cells
# Weibull equation is selected as the fitting function with a starting value of 6 and 2.
# Calculate the concentrations that cause 5\% and 50\% inhibition of the growth of MCF-7 and
# corresponding confidence intervals.
x <- cytotox$Omim$x
expr <- cytotox$Omim$y
curveFit(x, expr, eq = 'Weibull', param = c(6, 2), effv = c(0.05, 0.5))
Run the code above in your browser using DataLab