Skip to contents

Create a prediction field from the parsed model output and the mesh

Usage

create_prediction_field(
  mesh,
  plot_type = "predicted_mean_fields",
  data_dist = "poisson",
  var_a = NULL,
  var_b = NULL
)

Arguments

mesh

INLA mesh

plot_type

Type of plot to create, "predicted_mean_fields" etc

data_dist

Type of data, "poisson" etc

var_a

Data for variable a, required for "predicted_mean_fields" and "random_effect_fields"

var_b

Data for variable b, required for "predicted_mean_fields"

Value

data.frame