Data fit in simbiology app with a paramater that changes between groups
2 views (last 30 days)
Show older comments
I'm trying to use the simbiology app to fit data with a simbiology model. The problem is that between the data groups there is a independent variable (AHL) that changes between them (image 1). When the data was imported I defined the AHL row as a covariate (which I think is right) as seen in the image 1. The problem is that when I go to the data fit program in the simbiology app, at the part when all the other variables are defined (image 2), there is no option to define this AHL row as a covariate that needs to be linked to a parameter of the simbiology model (this, as shown in the image can be done for the group, independent and dependent type of variables). Is there a way I can do to define the AHL parameter so that it changes between data groups in fit data program of the simbiology app?
0 Comments
Answers (1)
Sietse Braakman
on 17 Aug 2020
Hi Quim,
Yes, you can do this by creating a species that you 'dose' with your covariate column. You can then assign the value of that species to the parameter you want to vary. Note that you will have to change your covariate column to only have the numerical value at t=0, and NaNs everywhere else. Remember that doses are cumulative so if you just use the covariate column as you have it now for this trick, the parameter will keep increasing at every timestep defined in your dataset. Here is more detail:
Let me know if you have further questions.
Best,
Sietse
Communities
More Answers in the SimBiology Community
See Also
Categories
Find more on Import Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!