surveySim {DIGSS} | R Documentation |
Survey Simulations
Description
Master function that runs survey simulations
Usage
surveySim(
survey.parameters,
artifact.analysis = TRUE,
plot = TRUE,
plot.artifacts = FALSE,
areaprecision = 1000
)
Arguments
survey.parameters |
List of class
|
artifact.analysis |
Includes the analysis of artifacts in sites. Can be very time-consuming for mid-high artifact densities. Default = |
plot |
If |
plot.artifacts |
If |
areaprecision |
Area covered by sites is approximated by a cookie-cutter approach. Default precision = |
Details
surveySim()
is the main function that will conduct the simulations
of survey grids based on the Survey Parameters created by user.
Value
A list with four objects:
Summary | A matrix with summary statistics about number of surveys, frequency of site founds, artifacts presence, and success rate of simulations. |
BySite | A matrix with results of the analyses by site from each of the survey areas created in the simulation. |
ByArtifact | A matrix with results of the analyses by artifact presence in survey pits from each of the survey areas created in the simulation. |
Parameters | A list with the parameters used to run the simulation. |
#'@references Kintigh (1988) The Effectiveness of Subsurface Testing: A Simulation Approach. American Antiquity, 53:686-707. doi: 10.2307/281113
Examples
#Runs simulations based on parametersExample
surveyExample<-surveySim(parametersExample)
#Edit parametersExample to have 50 simulations and then run simulations
tmp_parameters <-parametersExample
tmp_parameters$simulations<-50
survey50<-surveySim(tmp_parameters)