Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
121 views

I’m trying to fit a logistic function to GDP data (China GDP dataset) using scipy.optimize.curve_fit. The fitting looks very good (R² ≈ 0.99, curve matches the data), but when I try to predict a ...
MSo's user avatar
  • 13
2 votes
0 answers
98 views

I wrote a symbolic regression tool in Python. It is possible to give unary and binary operators. If nothing is specified, I want to determine potential operators. So, I want to know if there is an ...
P'tit Ju's user avatar
  • 143
0 votes
1 answer
65 views

I have following example data The Figures depend on 3 parameters: X, Y & Rank. Out of these we are making 4 buckets. High X High Y, Low X Low Y, High X, Low Y and Low X, High Y. Then we are ...
Jack Mank's user avatar
0 votes
1 answer
69 views

I feel like I'm missing something really obvious here. I'm using the R package DLNM to fit a model. It's happening inside a function (not shown) so that I can feed in different datasets and change the ...
jdcode's user avatar
  • 147
0 votes
1 answer
97 views

I am trying to emulate an nls() fit with nls2() via brute-force, when nls() works, so that I can look to a second option when it doesn't. What am I doing wrong in how I have specified nls2() below? Is ...
LucaS's user avatar
  • 1,335
0 votes
1 answer
104 views

I have written visual basic code to determine the r square when fitting data using different order polynomials: Linear 2nd order polynomial 3rd order polynomial As an example, I have used the ...
Daniel Louw's user avatar
2 votes
1 answer
145 views

I was trying to fit a data set into a sinusoidal function with the code below: data = importdata('analisipicco.txt') ; x = data(:,1) ; y = data(:,2) ; yu = max(y); yl = min(y); yr = (yu-yl); ...
Jack_01's user avatar
  • 39
-1 votes
1 answer
63 views

I am trying to use Python to calculate mean absolute error (MAE) while doing zero-inflated Poisson regression and zero-inflated negative binomial regression. I separated data into training data and ...
Student coding's user avatar
0 votes
1 answer
145 views

I have two groups of data and reason to believe that they follow the same asymptotic curve with offset upper limits. All the observations are assumed to be independent. I fit a simple model with the ...
myfatson's user avatar
  • 561
0 votes
1 answer
133 views

I'm trying to fit modeling data as a curve using Scipy's optimize curve_fit to some scattered data, but I got a negative value of (bX) parameter that makes no sense. So I'm not sure what is wrong with ...
yusra zabarmawi's user avatar
0 votes
1 answer
57 views

I am trying to understand what the following snippet of the code does, in particular the assign(home=1).rename part: goal_model_data = pd.concat([epl[['HomeTeam','AwayTeam','HomeGoals']].assign(home=1)...
Astral's user avatar
  • 209
0 votes
0 answers
76 views

I want to plot my data into a plt.scatter form but when I try to fill it, it just says that the x and y are not of the same size, and I also squeezed them to only one dimension so that it is easier to ...
Bernardo Géo Cometto's user avatar
0 votes
0 answers
90 views

I am not an expert with non-linear regression, but I struggle to make it work. I would like to fit the polynomial f(x) = ax^3 + bx^2 + cx + d, with the following constraints on my parameters : I want ...
Vincent's user avatar
  • 309
1 vote
0 answers
111 views

I'm trying to get bootstrapped confidence intervals for parameter estimates of a non-linear (Gompertz) mixed effects model built in the lme4 package with function nlmer(). I need to be able to graph ...
ef2's user avatar
  • 11
0 votes
1 answer
108 views

I run the example included in the documentation of the nardl function in the nardl package ############################################ # Fit the nonlinear cointegrating autoregressive distributed lag ...
Jose Luis Iparraguirre D'Elia's user avatar
0 votes
0 answers
42 views

A multiple regression with number of days from start of observations gives me a plot in which the confidence limits are shown for the entire range of x-values of the curve. When I change the ticks and ...
Roger Frost's user avatar
1 vote
1 answer
136 views

I would like to conduct multivariate regressions analyses of survey data with the item count technique using ictreg but without success as I keep seeing the following error message "Error in ...
Nick's user avatar
  • 11
0 votes
1 answer
367 views

I fitted a non-linear model to a dataset. However, I need to perform the half-normal plot of this model (using the hnp() function from the hnp package). My model was fitted considering the nls() ...
user55546's user avatar
1 vote
0 answers
775 views

I'm trying to run an ordinal logistic regression to predict an ordinal variable with 8 categories (bins of # of days spent recreating) based on a categorical (BIPOC/not) and continuous (urbanicity ...
KL_47's user avatar
  • 31
0 votes
0 answers
58 views

I am new in optimization and would like to write code that will determine the values of a1, a2, b1, b2 for a predefined function f_model based on the available inputs X1_data X2_data and output Y_list....
CLW-II's user avatar
  • 1
0 votes
0 answers
52 views

For context, I have calculated 3 functional diversity indices from the potentially non-affected fraction (PNAF) of species at different dissolved oxygen concentrations. In order to fit a regression I ...
William Imart's user avatar
0 votes
0 answers
40 views

%use fitobject = fit([x,y],z,fitType)creates a surface fit to the data in vectors x, y, and z. fitobject = fit([t,omega_0],z,fitType); fittype('A*cos(omega_0*t+phi)','problem',{'A','phi'},'options',fo)...
NirvanicUniverse's user avatar
0 votes
1 answer
116 views

I'm trying to fit some non-linear models in shiny to identify the best parameter values and then use them as initial values. As an example, I'm using a non-linear logistic model. Below is the ...
user55546's user avatar
1 vote
1 answer
894 views

I'm trying to fit ELISA plate data to a non-linear mixed effect model, using the nlme function. Previously, I asked about how to make the syntax work for nested groups, though responses made it seem ...
AndyH's user avatar
  • 11
1 vote
1 answer
70 views

I am trying to fit non-linear models with brms. My model is: y = intercept + b1 * (x1 * mean(x2^b2)) where: x1 is a measured continuous variable, x2 is also a continuous variable nested in x1. For ...
Julien Beaulieu's user avatar

1
2 3 4 5
16