# Continuous * continuous interaction
int_spec(between = c("price", "weight"), value = 0.1)
# Continuous * categorical interactions (must specify categorical level)
int_spec(between = c("price", "type"), with_level = "Fuji", value = 0.15)
int_spec(between = c("price", "type"), with_level = "Gala", value = 0.05)
# Categorical * categorical interactions (must specify both levels)
int_spec(between = c("type", "freshness"),
level = "Fuji", with_level = "Poor", value = -0.2)
Run the code above in your browser using DataLab