cftest function

Testing Estimated Coefficients

Testing Estimated Coefficients

A convenience function for univariate testing via z- and t-tests of estimated model coefficients

cftest(model, parm, test = univariate(), ...)

Arguments

  • model: a fitted model.
  • parm: a vector of parameters to be tested, either a character vector of names or an integer.
  • test: a function for computing p values, see summary.glht.
  • ...: additional arguments passed to summary.glht.

Details

The usual z- or t-tests are tested without adjusting for multiplicity.

Returns

An object of class summary.glht.

See Also

coeftest

Examples

lmod <- lm(dist ~ speed, data = cars) summary(lmod) cftest(lmod)