How to retrieve poisson regression model p-value
1 view (last 30 days)
Show older comments
Can someone please help me with how I can retrieve the overall model p-value for a Poisson regression model in MATLAB. Thanks.
0 Comments
Answers (1)
Milind Jain
on 28 Jul 2017
This value is not directly stored in the generalized linear model object, but it can be accessed by performing a deviance test. The following code will give the desired value.
d = devianceTest(mdl);
d.pValue
For more details on using 'devianceTest' for your model you can refer to the documentation link below https://www.mathworks.com/help/stats/compactgeneralizedlinearmodel.deviancetest.html
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!