spsurvey.object.gcpDiff(measured, predicted, type = "xy", aggregate = FALSE, rounding = 0)SpatialPointsDataFrame with the reference
GCP. A column named SpatialPointsDataFrame with the point
data being validated. A column named type = "xy". type = "z". Defaults to aggregate = FALSE. See
data.frame ready to be used to feed the argument
data.cont when creating a spsurvey.analysis object.Two types of validation data that can be submitted to function
gcpDiff(): those coming from horizontal (positional) validation exercises
(type = "xy"), and those coming from vertical validation exercises
(type = "z").
Horizontal (positional) validation exercises compare the position of
measured point data with the position of predicted point data.
Horizontal displacement (error) is measured in both measured and predicted used with function
gcpDiff() must be of class SpatialPointsDataFrame. They must have
at least one column named
Vertical validation exercises are interested in comparing the measured
value of a variable at a given location with that predicted by some
model. In this case, error statistics are calculated only for the the vertical
displacement (error) in the measured
and predicted used with function gcpDiff() must be of class
SpatialPointsDataFrame. They also must have a column named
Validation is sometimes performed using cluster or transect sampling. Before
estimation of error statistics, the data needs to be aggregated by cluster or
transect. The function gcpDiff() aggregates validation data of
type = "z" calculating the mean value per cluster. Thus, aggregation can
only be properly done if the measured and predicted provides the identification of clusters.
Setting aggregate = TRUE will return aggregated estimates of error
statistics. If the data has been aggregated beforehand, the parameter
aggregate can be set to FALSE.
}
There are circumstances in which the number of cases in the object
measured is larger than that in the object predicted. The function
gcpDiff() compares the number of cases in both objects and automatically
drops those cases of object measured that do not match the cases of
object predicted. However, case matching can only be done if case IDs are
exactly the same for both objects. Otherwise, estimated error statistics will
have no meaning at all.
}
coordenadas,
gcpVector,
spsurvey.analysis.## Create an spsurvey.analysis object
my.spsurvey <-
spsurvey.analysis(design = coordenadas(my.data),
data.cont = delta(ref.data, my.data),
popcorrect = TRUE, pcfsize = length(my.data$id),
support = rep(1, length(my.data$id)),
wgt = rep(1, length(my.data$id)), vartype = "SRS")Run the code above in your browser using DataLab