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
-1
votes
1 answer

Singular gradient error with R's nls / nlsLM

I would like to do a non-linear regression with a logit function like brian s. cheng, based on Fox & Weisberg. I wanted to go the most pain-free way and went with nls, but got the error Error in lm.fit(x, y, offset = offset, singular.ok =…
Make42
  • 12,236
  • 24
  • 79
  • 155
-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

Fitting and plotting non linear regression in R

I am trying to fit a non linear function to a given set of data (x and y in code snippet), the function is defined as f(x) = a/((sin((x-b)/2))^4) x <- c(0, 5, -5, 10, -10, 15, -15, 20, -20, 25, -25, 30, -30) y <- c(4.21, 3.73, 2.08, 1.1, 0.61,…
Honj25
  • 1
  • 1
-1
votes
1 answer

Loss not converging in Polynomial regression in Tensorflow

import numpy as np import tensorflow as tf #input data: x_input=np.linspace(0,10,1000) y_input=x_input+np.power(x_input,2) #model parameters W = tf.Variable(tf.random_normal([2,1]), name='weight') #bias b = tf.Variable(tf.random_normal([1]),…
-1
votes
2 answers

Why do I get this error below while using the Cubist package in R?

I have some personal dataset. So I split it into variable to predict and predictors. Following is the syntax: library(Cubist) str(A) 'data.frame': 6038 obs. of 3 variables: $ ads_return_count : num 7 10 10 4 10 10 10 10 10 9 ... $ actual_cpc …
Sourav Sarkar
  • 406
  • 1
  • 5
  • 14
-2
votes
1 answer

Scikit-learn regression on two variables given a 2D matrix of reference values

I have a matrix of reference values and would like to learn how Scikit-learn can be used to generate a regression model for it. I have done several types of univariate regressions in the past but it's not clear to me how to use two variables in…
ortunoa
  • 345
  • 4
  • 11
-2
votes
1 answer

How to do multiple polynomial regression in R?

To do a [muliple] linear regression model, one uses lm Is it possible to derive a multiple polynomial regression model? Where each coefficient is a polynomial function?
thistleknot
  • 1,098
  • 16
  • 38
-2
votes
3 answers

How to handle missing columns in test data?

I have training data as like following col1 col2 col3 col4 col5 Target 187.67 448.41 45.7 880070.41 1 -3 95.44 446.08 70.51 909069.06 4 120 I need to build a model and test with following data, col1 col2 …
-2
votes
1 answer

Non-linear regressions with caret package in R

I'm new using R and my doubt is really basic. I have several dependent variables (x) and one independent variable (y), and I'd like to generate different regression models with 10-folds-cross-validation in order to select the better one. All my…
Pablo
  • 463
  • 1
  • 5
  • 12
-3
votes
1 answer

Non Linear regression for Finding parameters in Python

I have a function Y=a+b*(x)^c and a List of experimental values of x and y. How can I do curve fitting for it in python and find out the value of parameters a,b and c? x y 5.107 3.57 15.593 4.09 178.942 9.19 351.23 14.3 523.172 …
-4
votes
2 answers

How to perform a non linear regression for my data

I have set of Temperature and Discomfort index value for each temperature data. When I plot a graph between temperature(x axis) and Calculated Discomfort index value( y axis) I get a reversed U-shape curve. I want to do non linear regression out of…
Arul
  • 349
  • 2
  • 4
  • 10
-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
48
49