# LeastSquaresResults

Results object containing estimation results from least-squares regression

## Description

The `LeastSquaresResults`

contains estimation results from
fitting a SimBiology^{®} model to data using `sbiofit`

with any supported
algorithm.

## Creation

Use the `sbiofit`

function to create a
`LeastSquaresResults`

object that is a superclass of two results objects:
`NLINResults object`

and `OptimResults object`

.

If `sbiofit`

uses the `nlinfit`

estimation algorithm,
the results object is the `NLINResults`

object. If
`sbiofit`

uses any other supporting algorithm, then the results object is
an `OptimResults`

object. See the `sbiofit`

function for the list of supported algorithms.

## Properties

## Object Functions

`boxplot` | Create box plot showing the variation of estimated SimBiology model parameters |

`fitted` | Return simulation results of SimBiology model fitted using least-squares regression |

`plot` | Compare simulation results to the training data, creating a time-course subplot for each group |

`plotActualVersusPredicted` | Compare predictions to actual data, creating a subplot for each response |

`plotResidualDistribution` | Plot the distribution of the residuals |

`plotResiduals` | Plot residuals for each response, using time, group, or prediction as x-axis |

`predict` | Simulate and evaluate fitted SimBiology model |

`random` | Simulate SimBiology model, adding variations by sampling error model |

`summary` | Return structure array that contains estimated values and fit quality statistics |

## Version History

**Introduced in R2014a**

## See Also

`NLINResults object`

| `OptimResults object`

| `sbiofit`

| `sbiofitmixed`