How can I evaluate the result of Fit applied to the data used in the example code below
data = {{0, 1}, {1, 0}, {3, 2}, {5, 4}};
line = Fit[data, {1, x}, x]
How do I now evaluate the function line at a particular point where x = 2.5 let's say.
Fitin the first place. UseLinearModelFitorNonlinearModelFitand you'll also have access to estimates of standard errors, confidence bands, goodness-of-fit statistics, etc. – JimB Mar 10 '21 at 21:10line /. x -> 2.5gives1.92373– Daniel Huber Mar 11 '21 at 10:50