where is the pvalue of the model stored in fitlm or fitglm?
61 views (last 30 days)
Dameng Yin on 15 Nov 2018
Edited: Dameng Yin on 15 Nov 2018
I had the same question. While looking for the answer online, I found the answer to this from here: StackOverflow.
This would work for fitlm as well:
p = coefTest(mdl);
I'm using Matlab 2018a. Not sure if the function is available in previous versions.
More Answers (3)
Duijnhouwer on 25 Mar 2016
This works (Matlab 2015b):
yanarof foranay on 28 Sep 2018
This answer may come a bit late, but at least it can help people that google the same problem (like me):
The p-value of the F-statistic vs. constant model (for the fitglm) can be retrieved like this:
pVal = RL_Model.devianceTest.pValue;