我有这样的数据
df<- structure(list(Conc = c(0.03125, 0.0625, 0.125, 0.25, 0.5, 1,
0.03125, 0.0625, 0.125, 0.25, 0.5, 1, 0.03125, 0.0625, 0.125,
0.25, 0.5, 1, 0.03125, 0.0625, 0.125, 0.25, 0.5, 1, 0.03125,
0.0625, 0.125, 0.25, 0.5, 1, 0.03125, 0.0625, 0.125, 0.25, 0.5,
1), Response = c(167.11246201, 53.96960486, 128.42857143, 43.67173252,
4.51975684, 0.34042553, 120.10334347, 101.14589666, 155.17629179,
35.31306991, 8.56534954, 1.7112462, 146.34954407, 108.50151976,
163.60182371, 64.70212766, 2.88145897, 0.50759878, 82.92401216,
109.80547112, 116.69300912, 26.85410334, 3.01519757, 0.37386018,
87.06990881, 84.82978723, 118.36474164, 27.52279635, 2.34650456,
0.10638298, 89.47720365, 109.47112462, 85.43161094, 17.69300912,
2.31306991, 0.07294833)), class = "data.frame", row.names = c(NA,
-36L))
一旦我尝试设置参数而不知道我真正在做什么
library(drc)
fit <- drm(formula = Response ~ Conc, data = df,
fct = LL.4(names=c("Slope","Lower Limit","Upper Limit", "EC50")))
一旦我让包为我选择它而不知道它在做什么
fit2 <- drm(formula = Response ~ Conc, data = df,
fct = LL.4(names=c("Slope","Lower Limit","Upper Limit", "EC50")),
lowerl = c(-Inf, 0, min(df$Response), 0),
upperl = c(Inf, min(df$Conc), max(df$Conc), Inf))
有人可以帮我理解这一点吗?
然后我看到结果完全不一样,我个人不知道参数选择哪种方式
plot(fit, main = paste("ED(drm, 50):", ED(fit, 50)[[1]]))
plot(fit2, main = paste("ED(drm, 50):", ED(fit2, 50)[[1]]))