【发布时间】:2021-01-18 19:40:25
【问题描述】:
pop.ss <- nls(MRDRSLT ~ SSlogis(TIME, phi1, phi2, phi3), data = testing, na.action = na.omit)
theta <- coef(pop.ss) #extracting coefficients
plot(MRDRSLT ~ TIME, data = testing, main = "Logistic Growth Model",
xlab = "Time", ylab = "MRD") # Census data
curve(theta[1]/(1 + exp(-(x - theta[2])/theta[3])), add = T, col = "green") # Fitted model
summary(pop.ss)
Formula: MRDRSLT ~ SSlogis(TIME, phi1, phi2, phi3)
Parameters:
Estimate Std. Error t value Pr(>|t|)
phi1 9.618e-05 6.935e-06 13.869 0.00516 **
phi2 2.480e+02 1.512e+01 16.403 0.00370 **
phi3 2.896e+01 2.392e+01 1.211 0.34960
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 1.197e-05 on 2 degrees of freedom
Number of iterations to convergence: 1
Achieved convergence tolerance: 1.687e-06
我希望能够计算我感兴趣的变量的倍增时间。我如何从系数中提取这个。 https://rdrr.io/r/stats/SSlogis.html
Asym/(1+exp((xmid-input)/scal))
在指数增长模型中很容易计算,因为它是 1/rate。
t_doubling <- (1 / mu) * log10(2)
【问题讨论】: