On the spatial distance between training and validation data in model evaluation: data, codes, and reproduction workflow

The files "<b>GenerateSimData.pdf</b>", "<b>SimulationAnalysis.pdf</b>", and "<b>CaseStudy.pdf</b>" are compiled R Markdown documents that demonstrate and reproduce the workflows for generating simulated data, conducting simulation analysis, and performing a case study, respectively. Each PDF includes the <b>R code and its direct output </b>(e.g., figures and results).<br>To reproduce these workflows in your environment, the "<b>Workflow_reproduction</b>" ZIP file contains all necessary R Markdown files, code with comments, and accompanying datasets. Specifically:<br>"<b>GenerateSimData.Rmd</b>" reproduces the workflow for generating simulated data.<br>"<b>SimulationAnalysis.Rmd</b>" reproduces the simulation analysis workflow.<br>"<b>casestudy.Rmd</b>" reproduces the case study analysis.<br>To run a specific part of the workflow, please download and unzip the "<b>Workflow_reproduction.zip</b>" file, then open the corresponding ".Rmd" file in RStudio and click the green "<b>Run Current Chunk</b>" arrow icon to execute each code chunk interactively.<br>If you would like to reproduce the workflow in the original environment entirely, we also provide the following resources:<br>The "<b>Data_file.zip</b>" file contains the response variables, explanatory variables, and simulated data.<br>The "<b>Origin_code.zip</b>" file contains the origin code for the manuscript:<br>"<b>spatial random sim.R</b>": The code for generating the simulated data.<br>"<b>sim case.R</b>": The code for simulation analysis.<br>"<b>compute_sliding_window_metrics.R</b>": The code for the moving distance validation model.<br>"<b>fun_spatially_weighted_validation.R</b>": The code for calculating the spatially weighted indicators.<br>"<b>Modelling.R</b>": The code for the case study.To run the entire workflow using the code from "Origin_code.zip," please download both "Origin_Code.zip" and "Data_file.zip." After unzipping "Origin_code.zip," extract the data of "Data_file.zip" into the unzipped "Origin_Code" folder, then run the workflow.

Publication Details

Journal
Figshare
Published
2025-01-01
DOI
https://doi.org/10.6084/m9.figshare.29616788.v1
Primary Topic
Data Analysis with R
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

On the spatial distance between training and validation data in model evaluation: data, codes, and reproduction workflow

Figshare
Data Analysis with R
article

On the spatial distance between training and validation data in model evaluation: data, codes, and reproduction workflow

article en

Abstract

The files "<b>GenerateSimData.pdf</b>", "<b>SimulationAnalysis.pdf</b>", and "<b>CaseStudy.pdf</b>" are compiled R Markdown documents that demonstrate and reproduce the workflows for generating simulated data, conducting simulation analysis, and performing a case study, respectively. Each PDF includes the <b>R code and its direct output </b>(e.g., figures and results).<br>To reproduce these workflows in your environment, the "<b>Workflow_reproduction</b>" ZIP file contains all necessary R Markdown files, code with comments, and accompanying datasets. Specifically:<br>"<b>GenerateSimData.Rmd</b>" reproduces the workflow for generating simulated data.<br>"<b>SimulationAnalysis.Rmd</b>" reproduces the simulation analysis workflow.<br>"<b>casestudy.Rmd</b>" reproduces the case study analysis.<br>To run a specific part of the workflow, please download and unzip the "<b>Workflow_reproduction.zip</b>" file, then open the corresponding ".Rmd" file in RStudio and click the green "<b>Run Current Chunk</b>" arrow icon to execute each code chunk interactively.<br>If you would like to reproduce the workflow in the original environment entirely, we also provide the following resources:<br>The "<b>Data_file.zip</b>" file contains the response variables, explanatory variables, and simulated data.<br>The "<b>Origin_code.zip</b>" file contains the origin code for the manuscript:<br>"<b>spatial random sim.R</b>": The code for generating the simulated data.<br>"<b>sim case.R</b>": The code for simulation analysis.<br>"<b>compute_sliding_window_metrics.R</b>": The code for the moving distance validation model.<br>"<b>fun_spatially_weighted_validation.R</b>": The code for calculating the spatially weighted indicators.<br>"<b>Modelling.R</b>": The code for the case study.To run the entire workflow using the code from "Origin_code.zip," please download both "Origin_Code.zip" and "Data_file.zip." After unzipping "Origin_code.zip," extract the data of "Data_file.zip" into the unzipped "Origin_Code" folder, then run the workflow.

Figshare
Openalex Percentile: Top 74%
Data Analysis with R
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

On the spatial distance between training and validation data in model evaluation: data, codes, and reproduction workflow · Figshare (2025) | TGRS Research Map | TGRS