Fit data with weight in Simbiology

조회 수: 7 (최근 30일)
Y.K.
Y.K. 2020년 12월 10일
편집: Y.K. 2020년 12월 14일
Can simbiology run a “Fit_data” task to a data containing missing values in “Use weight for each response” mode?
I am trying to fit a model to a multi-dimensional time trajectory data with missing value using simbiology
The average value of each response differs so much that I use “Use weight for each response” option, otherwise model fitting to the just one trajectory with the highest average value occurs.
However, the fitting cannot be performed.
The reason might be the NaN value returned during the calculation of the “weight” because my data contains NaN value in the original time trajectory data.
Is my understanding correct?
Please let me know if there is a way to run simbiology “Fit_data” task to a data containing missing value(NaN) in “Use weight for each response” mode.

채택된 답변

Arthur Goldsipe
Arthur Goldsipe 2020년 12월 10일
You can use NaN to indicate a missing value in your data. Such points will be ignored during fitting. If you are getting an error during fitting, I expect it is for a different reason. If you would like additional help figuring out the cause of the error, I suggest you share more details. The best option would be to share a SimBiology project file (.sbproj) that we can use to reproduce the error. At a minimum, please share more information about the exact error you are getting.
Also, you may be interested the "proportional" error model. This is equivalent to using a weight of 1 over the square of y sub i, where y sub i is the the value of the ith observation. You can read more about the various estimation options here.

추가 답변 (0개)

커뮤니티

더 많은 답변 보기:  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