Geostat_Sim | R Documentation |
Geostat_Sim
simulates data for use when testing VAST
Geostat_Sim(
Sim_Settings,
Extrapolation_List,
Data_Geostat = NULL,
MakePlot = FALSE,
DateFile = paste0(getwd(), "/"),
standardize_fields = FALSE
)
Sim_Settings |
an optional tagged list for specifying input parameters (see function code to determine settings) |
Extrapolation_List |
the output from |
Data_Geostat |
A data frame with column headers |
standardize_fields |
Boolean, whether to ensure that random fields have sample mean and standard deviation equal to their inputted values |
Return Tagged list of output
Simulated data for analysis
True biomass for each year and stratum
## Do not run (will be slow, due to simulating fine-scale spatial variation for many sites):
##
## # Prepare inputs
## Database = FishData::download_catch_rates( survey="Eastern_Bering_Sea", species_set="Gadus chalcogrammus", error_tol=0.01 )
## Data_Geostat = data.frame("Lat"=Database[,'Lat'], "Lon"=Database[,'Long'], "Year"=Database[,'Year'], "Vessel"="missing", "AreaSwept_km2"=1 )
## Extrapolation_List = FishStatsUtils::Prepare_Extrapolation_Data_Fn( Region="Eastern_Bering_Sea", strata.limits=data.frame( 'STRATA'="All_areas") )
##
## # Use function
## SimList = FishStatsUtils::Geostat_Sim(Sim_Settings=list(), Extrapolation_List, Data_Geostat=Data_Geostat )
## Data_Sim = SimList$Data_Geostat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.