Hi All,
I'm using fitnlm function, and would like to test if one of the coefficients is not equal to 1. Testing if it is different from 0 is easy (coeftest), but this function doesn't seem to have the ability to specify a null hypothesis other than zero. Any thoughts on how I can test for a difference between my coefficient (lambda) and 1?
Thanks,
Steven

 Réponse acceptée

Star Strider
Star Strider le 30 Mar 2015

1 vote

The simplest way is to see if the confidence interval for that coefficient (lambda) includes 1. If it does not, the value of the coefficient it is significantly different from 1 at the given probability. (This is the same as determining if it is different from zero.)
Rather than using fitnlm, it will probably be easier to run your regression again with nlinfit, and then use nlparci to calculate the confidence intervals.

2 commentaires

Steven Burnett
Steven Burnett le 30 Mar 2015
Great answer! Thanks
Star Strider
Star Strider le 30 Mar 2015
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by