How do I complete a Visual Predictive Check in Simbiology PopPK sbionlmefitsa
7 次查看(过去 30 天)
显示 更早的评论
Hi Simbiology Team:
I wanted to complete a visual predictive check (VPC) following a popPK analysis using the sbionlmefitsa. I brought this up to the Simbiology team some years ago and explained that it is generally standard practice to complete a VPC following NLME population pharmacokinetics.
I thought to adapt this example that used sbiofit - the nonlinear least-squares regression - for the sbionlmefitsa and it did not work:
https://www.mathworks.com/help/simbio/ref/simbiology.fit.parameterconfidenceinterval.html
ci = sbioparameterci(fitResults)
ci_results= sbiopredictionci(ci);
Plot Confidence Intervals for Model Predictions
plot(ci_results)
I understand there is a SimFunction tool as well. Is there way, I can simply export Simbiology results or the results as fitResults.m to do a VPC from a PopPK Example in Matlab Simbiology?
Thank you.
0 个评论
采纳的回答
Sietse Braakman
2019-9-23
Hi Andy,
Please excuse the late reply. Have you looked into using sbiosampleparameters? This function allows you to sample your covariate model with the thetas and etas you have estimated. The covariate model, the estimated thetas and etas can all be extracted from your Mixed effects fit results (NLMEresults object). In addition, you will need to create a dataset that contains the regressors for each subject that you want to simulate.
Once you have sampled your covariate model with the estimated thetas and etas, you can then simulate your model using the a simfunction. I recommend calling the simfunction with an outputTimes vector instead of a stopTime, in order to get homogeneous output vectors for each simulation. This is a requirement for calculating percentiles, see below.
Once you have simulated your samples, you can use the prctile function to calculate the percentiles. For the visualization of percentiles, you might want to have a look at visualization methods, perhaps on the MATLAB FileExchange here.
Let me know if this answers your question.
Best,
Sietse
更多回答(1 个)
Sietse Braakman
2019-10-9
Hi Andy,
Thank you for the feedback. To support my suggested approach with a more concrete example, we have written a function (vpc.m) and driver script (vpcDriver.m) that generates the VPC plot. We used the model and dataset that is included in your FileExchange post, which is not saved in the loadme.mat file. An example of the output is shown below. The code is attached to this post.
Note that you might need to include additional functionality if you need to use binning, prediction correction or want to incorporate an error model.
Best,
Sietse
社区
更多回答在 SimBiology Community
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Perform Sensitivity Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!