how to get detail information from a regression model results in a separate array?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Hello,
I am asking this question as I haven't find an answer yet. Could anybody help me please to learn how to to extract the coefficients values (or other relevant data) from the model results such as: mdl.Coefficients. I am trying to record such values for number of regression models to work on them in another code. An example of what I am lloking for is here:
Estimate SE tStat pValue
_________ _________ _______ __________
b1 -0.17489 0.025051 -6.9813 2.0592e-07
b2 -0.47334 0.024024 -19.702 3.7536e-17
b3 -0.028464 0.0058363 -4.877 4.6488e-05
b4 -0.023999 0.0072508 -3.3099 0.0027401
If I use mdl.Coefficients (1,2) for instance, this gives me a table like below instead of just the number (0.025051 in this case).
SE
________
b1 0.025051
I tried "get" command as well but it didn't work. Also I am wondering how I can clear a part of the regression results. I have a lot of observations that take the whole memory and I need to clear them from the mdl results. (like mdl.VariableInfo, mdl.ObservationInfo, etc.)
Thanks
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!