Returns from an ord_res
object either the linear or the non-linear
regression of the degradation kinetics data.
Value
Returns either an nls
or lm
object based on the regression
performed by the function det_order()
.
Details
After the
analysis in the phase space for the determination of the reaction order,
det_order()
performs either a linear or a non-linear
regression of the kinetic data, depending on whether the reaction order is
n=0 or n>0,
respectively. To access the regression object call kin_degr
.
Examples
t <- c(0, 4, 8, 12, 16, 20)
conc <- c(1, 0.51, 0.24, 0.12, 0.07, 0.02)
dframe <- data.frame(t, conc)
res <- det_order(dframe)
#> Reaction order estimated: 1
kin_regr(res)
#> Nonlinear regression model
#> model: y ~ y0 * exp(-k * t)
#> data: list(t = dframe[[1]], y = dframe[[2]], y0 = y0)
#> k
#> 0.1739
#> residual sum-of-squares: 0.0004036
#>
#> Number of iterations to convergence: 3
#> Achieved convergence tolerance: 4.583e-06