FittedModel
FittedModel[…]
represents the symbolic fitted model obtained from functions like LinearModelFit.
Details
- Properties of a fitted model are obtained from FittedModel[…]["property"].
- FittedModel[…][{prop1,prop2,…}] gives several properties.
- FittedModel[…][x1,…] gives the value of the best-fit function at a particular point x1, ….
- Normal gives the expression for the best-fit function in a FittedModel.
- FittedModel objects are returned by fitting functions such as LinearModelFit, NonlinearModelFit, and GeneralizedLinearModelFit.
- FittedModel[…][prop,ann] gives the annotation ann associated with the property prop.
- Possible properties available for a given type of fitted model are listed on the pages for functions such as LinearModelFit that generate the model.
Examples
open allclose allBasic Examples (2)
Obtain a FittedModel from a nonlinear fitting:
Obtain the functional form from the FittedModel object:
Evaluate the model at a point:
Visualize the fitted function with the data:
Extract information about the fitting:
Scope (4)
Extract the short description for a property:
Obtain multiple properties at once:
Plot the actual and predicted response values:
Obtain a FittedModel object for a linear fit:
Text
Wolfram Research (2008), FittedModel, Wolfram Language function, https://reference.wolfram.com/language/ref/FittedModel.html.
CMS
Wolfram Language. 2008. "FittedModel." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FittedModel.html.
APA
Wolfram Language. (2008). FittedModel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FittedModel.html