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

 採用された回答

Star Strider
Star Strider 2015 年 3 月 30 日

1 投票

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 件のコメント

Steven Burnett
Steven Burnett 2015 年 3 月 30 日
Great answer! Thanks
Star Strider
Star Strider 2015 年 3 月 30 日
My pleasure!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Community Treasure Hunt

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

Start Hunting!

Translated by