Main Content

Fit Models to Data

Fit one-stage, two-stage, and point-by-point models

Use the MBC Model Fitting app to fit one-stage, two-stage, and point-by-point models. For more information, see What Models Are Available? and Two-Stage Models for Engines.

Apps

MBC Model FittingCreate experimental designs and statistical models for model-based calibration

Functions

expand all

CreateBoundaryCreate boundary model
CreateDataCreate data object
CreateModelCreate new model
DataFileTypesData file types

Project and Test Plan Objects

mbcmodel.projectProperties and methods for project objects
mbcmodel.testplanProperties and methods for test plan objects

Project Methods

CopyDataCreate data object from copy of existing object
CreateDataCreate data object in a project object
CreateTestplanCreate new test plan
LoadLoad existing project file
NewCreate new project file
RemoveRemove project model
RemoveDataRemove data from project
SaveSave project

Testplan Methods

AddDesignAdd design to test plan
AttachDataAttach data from project to test plan
BoundaryModelGet boundary model from test plan
CreateDesignCreate design object for test plan or model
CreateResponseCreate response model for test plan
DetachDataDetach data from test plan
FindDesignFind test plan design by name
InputSetupDialogOpen Input Setup dialog box to edit inputs
RemoveDesignRemove design from test plan
UpdateDesignUpdate design in test plan

Linear Model Methods

AliasMatrixAlias matrix for linear model parameters
BoxCoxSSESSE and confidence interval for Box-Cox transformations
CorrelationCorrelation matrix for linear model parameters
CovarianceCovariance matrix for linear model parameters
MultipleVIFMultiple VIF matrix for linear model parameters
ParameterStatisticsCalculate parameter statistics for linear model
PartialVIFPartial VIF matrix for linear model parameters
SingleVIFSingle VIF matrix for linear model parameters
StepwiseRegressionChange stepwise selection status for specified terms

Model Methods

xregstatsmodelClass for evaluating models and calculating prediction error variance (PEV)
CreateDesignCreate design object for test plan or model
EvaluateEvaluate model, boundary model, or design constraint
ExportMake command-line or Simulink export model
fitFit model or boundary model to new or existing data, and provide summary statistics
getAlternativeTypesAlternative model or design types
InputSetupDialogOpen Input Setup dialog box to edit inputs
JacobianCalculate Jacobian matrix for model at existing or new data points
ModelSetupOpen Model Setup dialog box where you can alter model type
pevPredicted error variance of model at specified inputs
PredictedValuePredicted value of model at specified inputs
StatisticsDialogOpen summary statistics dialog box
SummaryStatisticsSummary statistics for response
UpdateResponseReplace model in response
ValidationRMSECalculates the validation RMSE for model data

Fit Algorithm Methods

mbcmodel.fitalgorithmProperties and methods for model fit algorithm objects
CreateAlgorithmCreate algorithm
getAlternativeNamesList alternative algorithm names
IsAlternativeAlternative fit algorithm status
SetupDialogOpen fit algorithm setup dialog box

Model Parameters

mbcmodel.linearmodelparametersProperties for linearmodelparameters model objects
mbcmodel.gpmparametersProperties for model gpmparameters objects
mbcmodel.linearmodelpropertiesProperties and methods for linear model property objects
GetAllTermsList all model terms
GetIncludedTermsList included model terms
SetTermStatusSet status of model terms
GetTermLabelList labels for model terms
GetTermStatusList status of some or all model terms

Topics