THIS README IS FOR THE THESIS_CODE DIRECTORY, WITH FOUR MAIN SUB-DIRECTORIES THAT WILL CONTAIN THEY'RE OWN README FILES.
THIS DIRECTORY CONTAINS ALL OF THE CODE USED FOR MY THESIS RESEARCH.
THE README'S WITHIN THE DIRECTORIES AND EACH OF THEIR SUB-DIRECTORIES WILL MATCH THE READMES FOR THE CORRESPONDING DIRECTORIES AND SUB-DIRECTORIES IN THE THESIS_DATA DIRECTORY.
ASIDE FROM THIS PRE-AMBLE, THE FOLLOWING TEXT WILL MATCH THAT FOUND IN THE THESIS_DATA DIRECTORY README, "README_THESIS_DATA" AND THE INFORMATION CAN ALSO BE FOUND IN A SINGLE README.pdf DOCUMENT.

THE THESIS_CODE AND THESIS_DATA DIRECTORY HAVE THE SAME DIRECTORY HIERARCHY AND THEREFORE, COMBINING THE CORRESPONDING DIRECTORIES AND EACH OF THEIR SUB-DIRECTORIES PROVIDES THE CORRESPONDING DATA (INPUT OR OUTPUT) WITH THE RELEVANT CODE.

- DATA: this sub-directory contains the code for the tidying of the raw crime and socio-economic variables as well as the code to turn these into count data over the census tracts and over grids of varying resolutions. The census tract count data and the point data are used for some exploratory data analysis as well as fitting initial (non-spatial) models within a sub-directory, while the count data over the different grids were used in the GRID_MESH AND INLA_w_MCMC directories. Any outputs and results directly from this directory are found in Chapter 1 of this thesis. Further information on the contents of this sub-directory can be found in its README and those of its sub-directories.

- GRID_MESH: this sub-directory contains the code for the set-up and implementation of the Grid-Mesh Optimisation Method for a Gaussian example, log-Gaussian Cox process example over a regular polygon with results found in Chapters 3. We also implement the Grid-Mesh Optimisation method to LGCPs simulated over the Los Angeles City polygon where results from this can be found in Chapter 4 of my thesis. Further information on the contents of this sub-directory can be found in its README and those of its sub-directories.

- INLA_w_MCMC: this sub-directory contains the code to implement the Univariate and Multivariate INLA within MCMC algorithm to the US crime data as well as the set-up and implementation of the Simulation Study over regular polygons for the Multivariate INLA within MCMC algorithm. Results from this section are found in Chapter 5 of my thesis. Further information on the contents of this sub-directory can be found in its README and those of its sub-directories.

- EXTRA: this sub-directory contains a few extra files, with no particular link to any of the other sections, but were used to produce plots within my thesis, and so kept for reproducibility. For example the example SBC plots in Chapters 2 and the additional SBC plots with model example results in Chapter 3. Further information on the contents of this sub-directory can be found in its README and those of its sub-directories.