How to assign to a SimBiology model a parameter value (known and constant) changing for each data in the dataset for a non-linear mixed effect estimation?

조회 수: 1 (최근 30일)
I’m interested in performing a non-linear mixed effect estimation of a compartmental model. Besides the four parameters to be estimated, the model has two parameters which need to be fixed and which assume a different value for each subject in the dataset. Is there any way to change the value of the fixed parameter for each subject in the dataset?
Thank you!

답변 (2개)

Arthur Goldsipe
Arthur Goldsipe 2016년 8월 24일
Hi Micaela,
Currently, the only information that can be fixed and different for each subject is the dosing. As a workaround, you could try to translate this subject-specific information into "dummy dosing." Let me warn you in advance that this is a pretty painful workaround. We hope to implement a better solution in a future release. But until then, here's how you might implement a workaround:
  • Add a dummy species to the model to store the subject-specific value. (You must use a species, because doses can only change species.)
  • Set the species initial value to 0, and set the units to mole or some other amount unit. (I suggest avoiding concentration units to avoid the complications associated with scaling of concentrations by compartment volume.)
  • Create one dose per patient that targets this new species and sets the amount to the appropriate numeric value.
If your model uses DimensionalAnalysis or UnitConversion, you may also need to convert this dummy species to a parameter with more appropriate units. To do so, perform the following additional steps:
  • Add a parameter to the model with the appropriate name and units.
  • Set ConstantValue to false for this parameter.
  • Create a parameter to act as a conversion factor. Set the Value to 1 and the ValueUnits to "(desired units)/(species units)". For example, if the dummy species has units of "mole" but the desired units are second, set this parameter's units to "second/mole".
  • Add a repeated assignment rule to set the parameter value. For example, if the dummmy species is named "dummySpecies", the actual parameter is name "k1", and the conversion factor is named "conversion1", then the repeated assignment rule would be "k1 = dummySepcies*conversion1".
Good luck,
-Arthur
  댓글 수: 1
Anne Smith
Anne Smith 2019년 1월 8일
I am wondering if there is an alternative to this dummy dosing workaround in the newer versions of MATLAB?
-Anne

댓글을 달려면 로그인하십시오.


Sietse Braakman
Sietse Braakman 2019년 1월 9일
Hi Anne,
As of 2018b, there is no easier way to achieve this, other than the method described by Arthur above. We are aware that this is a workflow many are interested in, so we hope to implement a better solution in the future.
Sietse

커뮤니티

더 많은 답변 보기:  SimBiology Community

카테고리

Help CenterFile Exchange에서 Import Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by