BGMtest: Tests the five Berry, Golder and Milton (2012) Interactive...

Description Usage Arguments Value Author(s) Examples

View source: R/DAMisc_functions.R

Description

This function tests the five hypotheses that Berry, Golder and Milton identify as important when two quantitative variables are interacted in a linear model.

Usage

1
BGMtest(obj, vars, digits = 3, level = 0.05, two.sided=T)

Arguments

obj

An object of class lm.

vars

A vector of two variable names giving the two quantitative variables involved in the interaction. These variables must be involved in one, and only one, interaction.

digits

Number of digits to be printed in the summary.

level

Type I error rate for the tests.

two.sided

Logical indicating whether the tests should be two-sided (if TRUE, the default) or one-sided (if FALSE).

Value

A matrix giving five t-tests.

Author(s)

Dave Armstrong (UW-Milwaukee, Department of Political Science)

Examples

1
2
3
4
library(car)
data(Duncan)
mod <- lm(prestige ~ income*education + type, data=Duncan)
BGMtest(mod, c("income", "education"))

DAMisc documentation built on May 30, 2017, 8:12 a.m.