3
I would like to know how to define the initial "kicks" to use
the power nonlinear regression model. I am working with estimation
of data, testing various regression models, even if there is no adjustment,
I would like to quote this model, but I have difficulty defining the values
initial, below follows only a fragment of data for testing, I would like to know a method that allows me to apply in any data set, for obtaining the initial values of A and B for the function nls(y~B*x^A,start=list(A=1, B=1.7))
dados<-structure(list(y = c(44.42, 77.9, 95.72, 40.24, 63.7, 46.62,
84.6, 52.49, 88.53, 56.52, 71.21, 65.16, 72.24, 53.81, 67.02),
x = c(11.26, 14.78, 17.56, 10.37, 13.27, 10.3, 14.07, 12.26,
13.3, 12.84, 13.72, 12.8, 14.86, 11.47, 15.06)), .Names = c("y",
"x"), row.names = c(NA, -15L), class = "data.frame")
attach(dados)
nls(y~B*x^A,start=list(A=1, B=1.7))
Excellent answer. Logging on both sides was my idea to linearize the problem and answer it. However, is this question not beyond the scope of the site? I looked for questions on meta and it seems to me that there is no consensus among users as to what to do in cases like this. Personally, I think you were right to answer, but there’s no risk of anyone coming here and closing the question?
– Marcus Nunes
@Marcusnunes Thanks! For me this question is on the frontier of "inside" and "outside" the scope... There is a risk of someone closing, but as it is at the border, you will find it difficult to get the 5 votes needed. The answer from Carlos reflects well my opinion. I mean, I just don’t answer if the question has nothing to do with programming. Here the problem of AP is more: I want to run nls and I can not pq the convergence problem, how to correct?. The way I see it, he didn’t come to me for help in statistics.
– Daniel Falbel
I will take this into account in my next responses. I need to learn to answer what is asked and not go too far in statistical theory on this site.
– Marcus Nunes