Questions tagged [nls]

nls refers to nonlinear least-squares and is a function in R that allows to estimate the parameters of a nonlinear model.

nls should not be confused with nls-lang which is an environment variable for Oracle databases.

670 questions
-1
votes
1 answer

Natural lagnuage generation via RNN and csv data

I'm a beginner of TensorFlow and machine learning. I'd like to ask about how I can make some code. I'm trying to make a natural language generation program by RNN. you can see the picture which is data, there're x, y, vocab_size and max_len each…
-1
votes
1 answer

Trying to fit some data, but start values and parameters error when I try to run nls

I'm trying to fit some data to an equation and keep running into the same error : Error in nls(y ~ A + (B * exp(1) * ((-(x - K)^2)/(2 * (E)^2))) + (G * : parameters without starting value in 'data': B, K, E, G, H, J gausform <- function(x, A, B,…
-1
votes
1 answer

Comparing complete model versus a null model with nls

I'd like to comparing a complete non-linear model with a null model. Is this possible, considering approaches normally using with glm for example? In my case: #Packages library(minpack.lm) # Data set - Diameter in function of Feature and…
Leprechault
  • 1,531
  • 12
  • 28
-1
votes
2 answers

nls() michaelis menten negative parameter

I am trying to fit michaelis menten equation to a dataset to determine rate of disappearance as well as IC50 (Km) if data permits. I am getting good fit except the first point at concentration 0, however, I am getting negative value of Km, which is…
Krina M
  • 135
  • 2
  • 13
-1
votes
1 answer

nls function in R within functions and lists

I am working with a package written in R-to fit experimental data to specific models and I want to write my own model and use same package(authors claim it is possible). So I am digging the source files to find where they define the model functions.…
behre
  • 11
  • 2
-1
votes
2 answers

Using R's nls, how to define the coefficients' individual formulae / constraints?

I've got a model to be estimated through the non-linear least squares method. The model is specified in such a way that I have a main formula having 5 coefficients which in turn have their own formulas dependent on total of four coefficients. The…
infoholic_anonymous
  • 969
  • 3
  • 12
  • 34
-2
votes
1 answer

nls regression and storing output coefficients and plots

I tried to make reproducible data as suggested by How to make a great R reproducible example?: structure(list(ID = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,…
-2
votes
2 answers

Oracle equivalence classes not working in regular expressions

The following Oracle equivalence class regular expression: SELECT REGEXP_SUBSTR('eéëèÉËÈE' '[[=É=]]+') FROM dual; is supposed to return: eéëèÉËÈE but instead it returns: É I've also tried putting the following in front of it: alter session set…
Superdooperhero
  • 7,584
  • 19
  • 83
  • 138
-3
votes
1 answer

facing error with "nlsLM" in R?

I am trying to fit some data using this equation:y= (exp(p1x1+p2x2+p3)+p4)^p5 here is a reproducible example: dat1 <- array(1:60, c(3,5,4));dat1=dat1*2 dat2 <- array(1:60, c(3,5,4));dat2=dat2*0.5 dat3 <- array(1:60, c(3,5,4)) #reorder dimensions…
sacvf
  • 2,463
  • 5
  • 36
  • 54
-6
votes
1 answer

Nonlinear model convergence

I have a time series data set and each time series has datapoint of 30-year from different/same species. I am developing a forecasting model using the first 23 years of data from each time series data point and I am using the rest 7 years as test…
Stackuser
  • 59
  • 7
1 2 3
44
45