setInteraction: Change the model to use (or not use) the interaction term

View source: R/setInteraction.R

setInteractionR Documentation

Change the model to use (or not use) the interaction term

Description

Change the model to use (or not use) the interaction term

Usage

setInteraction(x, bInteraction = TRUE)

Arguments

x

an object of class bayesFst

bInteraction

if TRUE then the interaction (gamma) terms are used in the model, otherwise they are not.

Note

This function changes a value in a C++ object. As a consequence it DOES NOT need to be reassigned.

Examples

bd = readData(system.file("extdata", "data_BB04.json", package = "rbayesfst"))
bf = init(bd)
print(bf)
## turn the interaction term on
setInteraction(bf)
## note how the model has changed even though there is no reassignment
print(bf)

jmcurran/rbayesfst documentation built on June 4, 2022, 9:57 a.m.