Questions tagged [non-linear-regression]

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.

732 questions
0
votes
1 answer

Nonliner Regression Toolbox in Matlab (nlinfit)

Do anyone know which algorithm and objective function for nonlinear regression MATLAB toolbox? I am looking at MATLAB website but it did not provide the information.
bbadyalina
  • 111
  • 2
0
votes
0 answers

Non-Linear Modeling with nls in R

I want to use non-linear regression lines to show the Height over Diameter relation of trees. I'm using the following formula: h = A + B ∙ d + C ∙ d² For this I used the nls package in R. I inserted the Formula in the follwing…
Lukas
  • 223
  • 3
  • 12
0
votes
0 answers

nls: how to set unreachable bounds on parameters

I am trying to estimate a complex model with nlsLM() in R package minpack.lm. It goes like this: nlc <- nls.lm.control(maxiter = 10000, maxfev = 10000) nlsLM(formula = log(demand+0.001) ~ Diff.model.log(m,pin,q,lambda1,lambda2,goal,length,time), …
0
votes
1 answer

Matlab: non-linear-regression, 2 criteria

I am trying to fit a non-linear model using 3 independent variables (light, temperature and vapor pressure deficit (VPD)) to predict net ecosystem CO2 exchange (NEE). I know how to use the nlinfit function, but my problem is that I want to use 2…
0
votes
0 answers

Matlab - Adding assumptions to non linear model fitting

I'm using the fitnlm function within Matlab to calculate three coefficients. To improve the results, I know that two of the coefficients need to be positive and the third to be from 0 - 360 degrees. How can I add these assumptions into the model?…
Whitt
  • 1
  • 1
0
votes
1 answer

R - How to fit a model to a nonlinear regression with darch() and predict()?

I am trying to fit a model to a non linear regression by using darch(). Here is the code I already have done : library(darch) x = seq(-10, 10, 0.2) e = function(x) { return(rnorm(n = length(x), 0, sqrt(0.1))) } y = function(x) { …
0
votes
1 answer

Predict function in R

I am trying to use to predict function to predict 100 points new points. I have a data.frame with one vector that is 100 doubls long. I am trying the predict function: predict(model, newdata=mydat) The function only returns a vector of length…
Nicholas Hayden
  • 473
  • 1
  • 3
  • 24
0
votes
1 answer

Fit with the parameter

I am quite new to Matlab and I am trying to use this code I found online. I am trying to fit a graph described by the HydrodynamicSpectrum. But instead of having it fit after inputting fvA and fmA, I am trying to obtain the fitted parameters for…
palansuya
  • 7
  • 3
0
votes
1 answer

Sigmoidal Modeling in R

I am currently trying to model and plot a sigmoidal curve with a low amount of points. >myExperiment V1 N mean 0.1 9 0.9 1 9 0.8 10 9 0.1 5 9 0.2 I am using the nlsLM function from the minpack.lm package. > nlsLM(mean2 ~ -a/(1 +…
Nicholas Hayden
  • 473
  • 1
  • 3
  • 24
0
votes
1 answer

Can I do regression with deep learning?

I am new to ML, and I have a dataset: Where: X = {X_1, X_2, X_3, X_4, X_5, X_6, X_7}; Y = Y; I'm trying to find the possible relationship between X and Y like Y = M(X) using Deep Learning. To my knowledge, this is a regression task since the data…
xtluo
  • 1,961
  • 18
  • 26
0
votes
1 answer

Multiple non linear regression in R program

I am trying to use a logistic model of the form Y = exp(ao + a1fi1....)/(1 + exp(a0 + a1fi1 ....) for multiple non linear regression in R, The dependent variable Y is a row consisting of about 500 values and there are 33 independent variables X1,…
MC2016
  • 1
  • 1
0
votes
1 answer

Graph evolution of quantile non-linear coefficient: can it be done with grqreg? Other options?

I have the following model: Y_{it} = alpha_i + B1*weight_{it} + B2*Dummy_Foreign_{i} + B3*(weight*Dummy_Foreign)_ {it} + e_{it} and I am interested on the effect on Y of weight for foreign cars and to graph the evolution of the relevant coefficient…
k1000x
  • 65
  • 10
0
votes
1 answer

How to estimate confidence of nonlinear regression?

I use Levenberg -- Marquardt algorithm to fit my nonlinear function f(x,b) (x:Nx1, b:Mx1) to data X:NxK. Now I want to estimate goodness (confidence) of solution b. This post says that I should not try to find R-squared in nonlinear case. What…
0
votes
1 answer

Error in using optim to maximise the likelihood in r

So, I have these functions: funk1 <- function(a,x,l,r) { x^2*exp(-(l*(1-exp(-r*a))/r))} funk2 <- function(x,l,r) { sapply(x, function (s) { integrate(funk1, lower = 0, upper = s, x=s, l=l, r=r)$value })} which are used to explain the data y in, …
0
votes
0 answers

"Equalise" one data set into another data set using neural network

I have two non-linear curves as shown below: The Blue solid curve is the current sensor data I am getting with respect to time. The red dashed function is the data from the gold standard. Its more of a calibration/regression problem. I want to…