When using multiple nonlinear regression (NLS function) in R language, we often encounter the problem that “the number of error in NLS cycles exceeds the maximum of 50”.
The main reason is that the default maximum number of iterations in NLS is 50. At this time, you only need to use NLS. Control code> to modify the maximum number of iterations
for example, change the maximum number of iterations to 1000:
nlc <- nls.control(maxiter = 1000)
m1 <- nls(y ~ a * x1 ^ b * x2 ^ c,
control = nlc,
start = list(a = 1, b = 1, c = 1),
trace = T)
Read More:
- In R language, for loop or array truncation, the following error occurs only 0’s may be mixed with negative subscripts
- Renaming the column name of data frame in R language
- Usage and examples of three important functions of tidyr package in R language: gather, spread and separate
- Solving the problem of saving object set by save() function in R language
- R language error in hist.default ():’x’must be a value
- R language error in match.names (clabs, names(xi)) :
- Error analysis of multiple linear regression in R language model.frame.default
- Trivia: How does R language solve Error in ts(x):’ts’ object must have one or more observations
- 13. R language: Error in match.names(clabs, names(xi)): The name is not relative to the original name
- Solution: error in the RPC receive loop
- R language-Error in file(out, “wt”): Unable to open the link problem solved
- R language error error: n() should only be called in a data context
- Solution to error [error] LD returned 1 exit status in C language
- R language packages installation failed: Error in install.packages: error reading from connection
- Solution to the segmentation fault of single chain table in C language
- R language – path setting and working directory modification
- R language notes – sample() function
- Installation and use of R language ggmap package
- Solutions to the failure of R language loading rjava
- R language error messages and related solutions