Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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(), ...)

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.

Value

An object of class summary.glht.

See Also

Examples

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

multcomp

Simultaneous Inference in General Parametric Models

v1.4-17
GPL-2
Authors
Torsten Hothorn [aut, cre] (<https://orcid.org/0000-0001-8301-0471>), Frank Bretz [aut], Peter Westfall [aut], Richard M. Heiberger [ctb], Andre Schuetzenmeister [ctb], Susan Scheibe [ctb]
Initial release
2021-04-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.