When using the following command to estimate the model parameters (bell_model):
h <- c(43.34, 35.84, 33.45, 30.94, 27.35, 21.75, 13.75, 57.37,
48.36, 44.62, 41.05, 36.49, 29.92, 21.07, 66.65, 56.65, 52.03,
47.75, 42.54, 35.32, 25.92, 75.56, 64.60, 59.13, 54.17, 48.35,
40.51, 30.57)
TR <- c(2, 2, 2, 2, 2, 2, 2, 5, 5, 5, 5, 5, 5, 5, 10, 10, 10, 10, 10, 10,
10, 20, 20, 20, 20, 20, 20, 20)
t <- c(120, 60, 50, 40, 30, 20, 10, 120, 60, 50, 40, 30, 20, 10, 120,
60, 50, 40, 30, 20, 10, 120, 60, 50, 40, 30, 20, 10)
dados <- data.frame(h,TR,t)
param <- list(a1 = 0.7, a2 = 0.38, a3 = 0.38, b = 0.31, a4 = 0.39)
bell_model <- nls(h ~ ((a1*log(TR)+a2)*(a3*(t^b)-a4)*41.59), dados, start =
param)
An error has occurred:
Error in nlsModel(formula, mf, start, wts) :
singular gradient matrix at initial parameter estimates
What would be this error and how to solve this problem? Thanks in advance!