Test if coefficient is different from 1

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

 Accepted Answer

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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!