我不確定這是否是重復的問題。但我真的希望能從這里得到幫助。
我想繪制如下圖所示的圖表,擬合 2 引數 Weibull 曲線。x 軸為days,y 軸為biomaker level,截斷值為 0.5。

2. dweibull
nls(y ~ 46 * dweibull(x, shape, scale), start = c(shape = 3, scale = 20))
Nonlinear regression model
model: y ~ 46 * dweibull(x, shape, scale)
data: parent.frame()
shape scale
2.375 23.378
residual sum-of-squares: 27.93
Number of iterations to convergence: 9
Achieved convergence tolerance: 4.33e-06
plot(y ~ x)
curve(46 * dweibull(x, 2.375, 23.378), add = TRUE)

轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/336886.html
上一篇:如何使用textInput更新多個selectizeInput?
下一篇:R:在同一圖上繪制不同大小的列
