wald_test: Wald Test for Linear Hypotheses

View source: R/wald_test.R

wald_testR Documentation

Wald Test for Linear Hypotheses

Description

This function is a wrapper for the function car::linearHypothesis(), but which uses the bain::bain() syntax to parse equality constrained hypotheses.

Usage

wald_test(x, hypothesis, ...)

Arguments

x

An object for which a method exists.

hypothesis

A character string with equality constrained hypotheses, specified according to the bain::bain() syntax.

...

Additional arguments passed to car::linearHypothesis().

Value

A data.frame of class wald_test.

See Also

linearHypothesis

Examples

mod <- lm(Sepal.Length ~ Sepal.Width, data = iris)
coef(mod)
wald_test(mod, "Sepal.Width = 0")

tidySEM documentation built on Oct. 25, 2023, 1:06 a.m.