accuracy.stratified: Calculates accuracy of land/forest cover maps based on...

Description Usage Arguments Details Value Author(s) References Examples

Description

This function calculates accuracy of land/forest cover and its change mapping for sample collected using stratified random sampling. Accuracy estimates such as overall accuracies, class accuracies are calculated while correcting area bias in the sample representation that is recommended when the sample sites do not have equal inclusion probability. Area estimation of land/forest cover classes are also corrected for map error (Card 1982 and Olofsson et al 2014, Tsendbazar et al 2016). Area weighted or error adjusted accuracy and area estimation uses a normal confusion matrix based on sample counting and proportion of area of land/forest cover classes. Accuracy calculations by Card 1982 is implemented.

Usage

1
accuracy.stratified(cm, area, alpha = 0.05)

Arguments

cm

Input confusion matrix where reference classes are represented in the columns and mapped classes are in the rows. It can be data.frame or matrix with equal number of rows and columns.

area

A list containing the area proportions (between o to 1) of each classes within the mapped area.

alpha

Value (1-confidence level) used for calculating z score for upper and lower limits of the accuracy estimates.

all

Logical.If TRUE, returns all the accuracy estimates and area estimation

Details

ADD extra details about the function and methods here Nandika, if any ......

Value

Returns a list object containing:

overall_accuracy : Matrix of class "numeric", containing overall accuracies (sample count and area adjusted), their variences and confidence intervals.

class_area_accuracy : Matrix of class "numeric", containing class specific user's and producer's accuracies as well as area estimation of each classes adjusted for area bias for the sample selection and map error.

adjusted_conf_matrix : A confusion matrix that is corrected for adjusted for area bias for the sample selection.

Author(s)

Nandika Tsendbazar

References

1. Card, D.H."Using known map category marginal frequencies to improve estimates of thematic map accuracy." Review of. Photogrammetric Engineering and Remote Sensing 48 (3):431-9.

2. Tsendbazar, N. E., S. de Bruin, B. Mora, L. Schouten, and M. Herold."Comparative assessment of thematic accuracy of GLC maps for specific applications using existing reference data." International Journal of Applied Earth Observation and Geoinformation 44:124-35. http://dx.doi.org/10.1016/j.jag.2015.08.009

3. Olofsson, Pontus, Giles M. Foody, Martin Herold, Stephen V. Stehman, Curtis E. Woodcock, and Michael A. Wulder."Good practices for estimating area and assessing accuracy of land change." Remote Sensing of Environment 148:42-57. http://dx.doi.org/10.1016/j.rse.2014.02.015

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

#preparing matrix
cm<-c(48, 0, 2, 5, 1, 49, 0, 4, 1, 0, 47, 3, 0, 1, 1, 34)
cm1<-matrix(cm, 4, 4, byrow=T)
rownames(cm1)<-c( "class1", "class2", "class3", "class4")
colnames(cm1)<-c( "class1", "class2", "class3", "class4")
#proportions of the classes
area<-c(0.4, 0.4, 0.14, 0.06)
test.acc<-accuracy.stratified(cm1, area, alpha=0.05)

## End(Not run)

hamun001/STEF documentation built on May 23, 2019, 8:37 a.m.