THIS README IS FOR THE GRID_MESH/GAUSSIAN/GAUSSIAN_CODE DIRECTORY.

THIS DIRECTORY CONTAINS THE DATA AND CODE FOR THE IMPLEMENTATION OF THE TRADITIONAL AND SBC SIMULATION STUDY FOR GAUSSIAN DATA. WITHIN BOTH R SCRIPTS IS THE CODE THAT WAS RUN TO PRODUCE THE COVARIATES AND MESHES, WHICH ARE THEN COMMENTED OUT AFTER THESE WERE CREATED AND STORED TO SAVE THE WASTED TIME IN RE-CREATING THE MESH AT EACH STEP AND TO ENSURE CONSISTENCY.

- GridMeshOptimTradSG_final.R: this file contains the code to simulate the covariates and meshes at different resolutions for the simulation study, which are commented out after their initial creation. This R script contains the code to run the traditional simulation study of the Grid-Mesh Optimisation method for the Gaussian example.

- GridMeshOptimSG_final.R: this file contains the code to simulate the covariates and meshes at different resolutions for the simulation study, which are commented out after their initial creation. This R script contains the code to run the SBC simulation study for the Grid-Mesh Optimisation method.
Note: while there is code to calculate the SBC ranks for the mean fields, these outputs were not considered as our interest was in the SBC results for the Gaussian field with the simulated Gaussian data. Therefore these outputs are unused and if interest lies in the mean field the code may need to be tidied/improved before further use of the mean field ranks. Additionally, for the Gaussian example (unlike the LGCP implementations) we output the CPO for each iteration, but these were also unused in our analysis, also not the increase in file size due to its inclusion in the output.

- MeshesRegPolSG.rda, GridMeshSGSSCov.rda: these are the data files created from the simulation study R scripts for the data simulation and model fitting.

- PlottingSGRegularPolygonMesh_final.R: this produces the plots of the mesh, MeshRegPolSG*.pdf, used in the Grid-Mesh Optimisation for the Gaussian example.