Documentation 
Fit nonlinear mixedeffects model
fitResults = sbiofitmixed(sm,grpData,responseMap,covEstiminfo) performs nonlinear mixedeffects estimation using the SimBiology^{®} model sm and returns a NLMEResults object fitResults.
grpData is a groupedData object specifying the data to fit. responseMap is a string or cell array of strings that maps model components to response data in grpData. covEstiminfo is a CovariateModel object or an array of estimatedInfo objects that defines the parameters to be estimated.
If the model contains active doses and variants, they are applied during the simulation.
fitResults = sbiofitmixed(sm,grpData,responseMap,covEstiminfo,dosing) uses the dosing information specified by a matrix of SimBiology dose objects dosing instead of using the active doses of the model sm if there are any.
fitResults = sbiofitmixed(sm,grpData,responseMap,covEstiminfo,dosing,functionName) uses the estimation function specified by functionName that must be either 'nlmefit' or 'nlmefitsa'.
fitResults = sbiofitmixed(sm,grpData,responseMap,covEstiminfo,dosing,functionName,opt) uses the additional options specified by opt for the estimation function functionName.
fitResults = sbiofitmixed(sm,grpData,responseMap,covEstiminfo,dosing,functionName,opt,variants) applies variant objects specified as variants instead of using any active variants of the model.
fitResults = sbiofitmixed(_,'UseParallel',tf) provides an option to estimate parameters in parallel if Parallel Computing Toolbox™ is available.
[fitResults,simDataI,simDataP] = sbiofitmixed(_) returns a vector of results objects fitResults, vector of simulation results simDataI using individualspecific parameter estimates, and vector of simulation results simDataP using population parameter estimates.
Note:

[1] Grasela Jr, T.H., Donn, S.M. (1985) Neonatal population pharmacokinetics of phenobarbital derived from routine clinical data. Dev Pharmacol Ther. 8(6), 374–83.
CovariateModel object  estimatedInfo object  groupedData  nlmefit  nlmefitsa  NLMEResults object  sbiofit  sbiofitstatusplot