In statistics, nonlinear regression is a form of regression analysis in which observations are modeled by a function which is a nonlinear combination of the model parameters and depends on one or more independent variables.
Questions tagged [non-linear-regression]
732 questions
0
votes
1 answer
calculate gaussian curve fitting on a list
I have a list data like below. I want to perform nonlinear regression Gaussian curve fitting between mids and counts for each element of my list and report mean and standard deviation
mylist<- structure(list(A = structure(list(breaks = c(-10, -9,…

nik
- 2,500
- 5
- 21
- 48
0
votes
0 answers
regression with high polynomial interaction in r (large data)
I am working on a project using R to select a best fitted model.
I have 15 variables and the sample size is 790,000. Linear model does not work b/c the residuals are not random and non-normal.
So I tried to run nonlinear model with higher…

Shiring
- 1
- 2
0
votes
0 answers
Fitting exponential nls in R
I am trying to fit a line of best fit to some data. From the look of it it's a negative exponential curve. I have managed to use the nls function to find a second order polynomial fit, but when I try to fit an exponential problems occur....
When I…

George
- 27
- 9
0
votes
0 answers
Accessing defined parameters in a formula in R
I am writing a function that allows many starting parameter combinations to be tried to fit nonlinear regression as nlsList() only allows one set of starting parameters.
I have managed this fine but want to add a predictions data frame into the…

Daniel Padfield
- 192
- 13
0
votes
1 answer
Syntax for graphing 3-way curvilinear multiple regression interaction in SPSS?
I'm attempting to complete my dissertation, but given I'm not a programmer, I'm running into trouble figuring out how to write SPSS syntax to graph my results. I have three continuous predictors and one continuous dependent variable; I need to graph…

Marisa
- 9
- 2
0
votes
1 answer
Custom nonlinear function in `R.gnm`
I'm trying to build a nonlinear model as described in the manual for gmn in R. The desired form of the model is
y = b0*x0^g0 + b1*x1^g1 + ...
This would seem to be the simplest possible form of nonlinear model to me, but for some reason (and…

Sideshow Bob
- 4,566
- 5
- 42
- 79
0
votes
2 answers
Scikit - Format Output of Polynomial Regression
I doing polynomial regression with scikit learn and try to interpret the coefficients. But somehow scikit doesn't format the output. So it looks like this:
[ 0.,0.95545289,0.,0.20682341,-0.,0.,-0.,-0.,0.,0.,0.,-0.,0.,-0.,-0.,]
How can I map the…

Alanovic
- 51
- 1
- 7
0
votes
1 answer
Only getting a single value from predict.nls - why?
I'm running the folllowing to get predicted/fitted values:
library(RCurl)
data <- getURL("https://gist.githubusercontent.com/aronlindberg/a8a6644a639c35ceb9d9/raw/5b7c13bbcd439dacbca70e07c96b6c33804273d2/data.csv")
object <- read.csv(text =…

histelheim
- 4,938
- 6
- 33
- 63
0
votes
0 answers
R - NLS and linear equation
I know NLS is used to fit nonlinear equations, but I don't understand why it won't work with a simple linear one. I mean, the theory should still hold, right? But, when I try to do something simple like the following, it won't converge.
y =…

kyro1021
- 31
- 2
0
votes
0 answers
Python : Gaussian Process Regression and GridSearchCV
I am working on Gaussian Process Regression with Python on NIR spectrum data. I can get some results with GPR and would like to optimize parameters for GPR. I am trying to use GridSearchCV to optimize parameters, but I keep getting an error and…

Jay
- 9
- 3
0
votes
1 answer
GSL non-linear least squares fit won't converge
I am relatively new to C++ and especially the GSL.
Nonetheless I have undertaken the endeavour to solve the problem of fitting non-linear functions to some data with the implementations provided by GSL.
The idea is to have a Class (Clnm), which…

DrEigelb
- 588
- 4
- 8
0
votes
2 answers
How to code remove NA in "with" base in R
My simple data set look like the following.
+--------+------+--------+-----+-----+
| Time | Firm | Out | Lab | Cap |
+--------+------+--------+-----+-----+
| Jan-00 | A | 161521 | 261 | 13 |
| Feb-00 | A | 142452 | 334 | 15 |
| Mar-00…

Doo
- 29
- 7
0
votes
0 answers
Biexponential Model in R
I have a question: In R for Biexponential Model can I use a data that contains negatives ??? Because it gives me ERROR !!! Is it possible that the negative numbers be the reason for that Errors ?
My function for Biexponential in R…

User 9963571
- 15
- 2
0
votes
1 answer
nlinfit Dimension Error
I am using nonlinearfit tool in matlab.
I keep getting the following error:
Error using nlinfit (line 210)
MODELFUN must be a function that returns a vector of fitted values the same size as Y (1-by-100). The model function you provided returned…

swagat patnaik
- 11
- 4
0
votes
1 answer
Determine Uncertainty in Peak Value of Spectrum (Standard Error or Parameter Error)
I want to extract the position of a peak from a spectrum (energy spectrum of scattered photons). To do so, I am using scipy.optimize.curve_fit to fit a Gaussian to the region of the spectrum that resembles the Gaussian.
How do I find the uncertainty…

user200017
- 35
- 7