Learn R Programming

multcomp (version 1.4-26)

cftest: Testing Estimated Coefficients

Description

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

Usage

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

Value

An object of class summary.glht.

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.

See Also

coeftest

Examples

Run this code

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

Run the code above in your browser using DataLab