where is the pvalue of the model stored in fitlm or fitglm?
Mostra commenti meno recenti
I'm looking for the model pvalue in comparison to the constant interception, not the variable pvalues. Thanks
Risposta accettata
Più risposte (3)
yanarof foranay
il 28 Set 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;
1 Commento
Guillermo Quintas
il 9 Feb 2023
yes! thanks!
Duijnhouwer
il 25 Mar 2016
This works (Matlab 2015b):
load hald
M=fitlm(ingredients,heat)
T=anova(M,'summary')
F=table2array(T(2,4))
pValue=table2array(T(2,5))
Categorie
Scopri di più su Descriptive Statistics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!