has.interaction: Function has.interaction checks whether x is part of a term...

Description Usage Arguments Value

View source: R/has.interaction.R

Description

Function has.interaction checks whether x is part of a term in terms. Original code at: http://stackoverflow.com/questions/19226816/how-can-i-view-the-source-code-for-a-function. Some changes have been done.

Usage

1

Arguments

x

a logistic model (an object of class "glm", usually, a result of a call to glm).

terms

is a vector with names of terms from a model.

Value

Logical. TRUE if an interaction is a term in terms. Otherwise is FALSE.


IRBLleida/UdBRpackage documentation built on Dec. 24, 2019, 9:10 p.m.