I've been trying to run some analysis using the nls function in R but keep
coming up with an error message which I don't understand how to fix. The
message follows here:
Error in nls(formula = f.p, data = n.data, start = list(S = 1, a = -0.1, :
singular gradient
In addition: Warning messages
Jim Bouldin wrote:
When I try to run the following non-linear regression with variables
index1 and prl3:
beta = 4
nls(index1~beta*(1/prl3),start = list(beta = 4))
I get this error message:
Error in nls(index1 ~ beta * (1/prl3), start = list(beta = 4)) :
REAL() can only be applied to a
When I try to run the following non-linear regression with variables
index1 and prl3:
> beta = 4
> nls(index1~beta*(1/prl3),start = list(beta = 4))
I get this error message:
Error in nls(index1 ~ beta * (1/prl3), start = list(beta = 4)) :
REAL() can only be applied to a 'numeric', not a 'lo
3 matches
Mail list logo