How to predict single values in R

You’re using the incorrect X variable name in your call to predict (it should be called the same as the X variable you used when you created the initial model) Although not necessary, its typical to have meanValuesHeatingPower and meanValuesOutsideTemperature as columns in the same dataframe, and then pass that dataframe in to data when creating the model The following works for me:

Nonlinear regression with python – what’s a simple method to fit this data better?

This example code uses an equation that has two shape parameters, a and b, and an offset term (that does not affect curvature). The equation is “y = 1.0 / (1.0 + exp(-a(x-b))) + Offset” with parameter values a = 2.1540318329369712E-01, b = -6.6744890642157646E+00, and Offset = -3.5241299859669645E-01 which gives an R-squared of 0.988 and … Read more