Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

**Class: **CompactLinearModel

Linear hypothesis test on linear regression model coefficients

`p = coefTest(mdl)`

p = coefTest(mdl,H)

p = coefTest(mdl,H,C)

[p,F] =
coefTest(mdl,___)

[p,F,r]
= coefTest(mdl,___)

computes
the `p`

= coefTest(`mdl`

)*p*-value for an *F* test that
all coefficient estimates in `mdl`

are zero, except
for the intercept term.

performs
an `p`

= coefTest(`mdl`

,`H`

)*F* test that *H* × *B* =
0, where *B* represents the
coefficient vector.

performs
an `p`

= coefTest(`mdl`

,`H`

,`C`

)*F* test that *H* × *B* = *C*.

`[`

returns
the `p`

,`F`

] =
coefTest(`mdl`

,___)*F* test statistic, `F`

, using
any of the previous syntaxes.

`[`

returns
the numerator degrees of freedom, `p`

,`F`

,`r`

]
= coefTest(`mdl`

,___)`r`

, for the
test.

The values of commonly used test statistics are available in
the `mdl.Coefficients`

table.

`anova`

provides
a test for each model term.

Was this topic helpful?