View source: R/setInteraction.R
setInteraction | R Documentation |
Change the model to use (or not use) the interaction term
setInteraction(x, bInteraction = TRUE)
x |
an object of class |
bInteraction |
if |
This function changes a value in a C++ object. As a consequence it DOES NOT need to be reassigned.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.