Skip to contents
model_meanfield <- BayesPharma::MuSyC_model(
  data = model_data,
  algorithm = "meanfield")

model <- BayesPharma::MuSyC_model(
  data = model_data)

plot_data <- data |>
  dplyr::filter(
    treatment == "ztz240",
    is_control == FALSE) |>
  dplyr::transmute(
    response = conductance,
    dose1 = dose_uM,
    dose2 = 10^(voltage),

BayesPharma::plot_synergy_checkerboard(
  data = plot_data,
  treatment_1_label = "ztz240",
  treatment_1_units = "μM",
  treatment_2_label = "Voltage",
  treatment_2_units = "mV") +
  ggplot2::coord_cartesian(default = TRUE) +
  ggplot2::scale_y_continuous(
    "Voltage (mV)",
    breaks = data$voltage |> unique() |> sort(),
    labels = signif(d2_label, 3),
      expand = c(0, 0))
## Error in predict(model, newdata = tidyr::expand_grid(logd1 = seq(-1, 1, : object 'model' not found