fit <- nls(y ~ richards(x, a, b, m, n), data = data, start = list(a = 0.1, b = 0.1, m = 0.1, n = 1))
时间: 2024-06-01 07:11:31 浏览: 67
alibabacloud-nls-python-sdk-1.0.0.zip
This code is fitting a non-linear model to the data contained in the object "data" using the Richards function. The function takes four parameters: a, b, m, and n. The starting values for each parameter are provided in the "start" argument. The fitted model is saved in the object "fit".
阅读全文