r.kappa(1grass)


NAME

   r.kappa   -  Calculates  error  matrix and kappa parameter for accuracy
   assessment of classification result.

KEYWORDS

   raster, statistics, classification

SYNOPSIS

   r.kappa
   r.kappa --help
   r.kappa   [-wh]   classification=name   reference=name    [output=name]
   [title=string]     [--overwrite]    [--help]    [--verbose]   [--quiet]
   [--ui]

   Flags:
   -w
       Wide report
       132 columns (default: 80)

   -h
       No header in the report

   --overwrite
       Allow output files to overwrite existing files

   --help
       Print usage summary

   --verbose
       Verbose module output

   --quiet
       Quiet module output

   --ui
       Force launching GUI dialog

   Parameters:
   classification=name [required]
       Name of raster map containing classification result

   reference=name [required]
       Name of raster map containing reference classes

   output=name
       Name for output file containing error matrix and kappa
       If not given write to standard output

   title=string
       Title for error matrix and kappa
       Default: ACCURACY ASSESSMENT

DESCRIPTION

   r.kappa tabulates the error matrix of classification result by crossing
   classified map layer with respect to reference map layer.  Both overall
   kappa (accompanied by its variance) and conditional  kappa  values  are
   calculated.   This  analysis  program  respects  the current geographic
   region and mask settings.

   r.kappa calculates the error matrix of the two map layers and  prepares
   the  table  from  which  the report is to be created.  kappa values for
   overall and each classes are computed along with their variances.  Also
   percent  of  commission  and  ommission error, total correct classified
   result by pixel counts, total area in pixel counts  and  percentage  of
   overall correctly classified pixels are tabulated.

   The  report  will  be  write  to  an output file which is in plain text
   format and named by user at prompt of running the program.

   The body of the report is arranged in panels.   The  classified  result
   map  layer categories is arranged along the vertical axis of the table,
   while the reference map layer categories  along  the  horizontal  axis.
   Each  panel has a maximum of 5 categories (9 if wide format) across the
   top.  In addition, the last column of the last panel reflects  a  cross
   total  of  each  column for each row.  All of the categories of the map
   layer arranged along the vertical axis, i.e., the reference map  layer,
   are  included  in  each  panel.  There is a total at the bottom of each
   column representing the sum of all the rows in that column.

NOTES

   It is recommended to reclassify categories  of  classified  result  map
   layer  into  a  more  manageable  number  before running r.kappa on the
   classified raster  map  layer.  Because  r.kappa  calculates  and  then
   reports information for each and every category.

   NA's in output file mean non-applicable in case MASK exists.

EXAMPLE

   Example for North Carolina sample dataset:
   g.region raster=landclass96 -p
   r.kappa -w classification=landuse96_28m reference=landclass96

   Verification of classified LANDSAT scene against training areas:
   r.kappa -w classification=lsat7_2002_classes reference=training

SEE ALSO

   g.region, r.category, r.mask, r.reclass, r.report, r.stats

AUTHOR

   Tao Wen, University of Illinois at Urbana-Champaign, Illinois

   Last changed: $Date: 2014-12-19 22:17:36 +0100 (Fri, 19 Dec 2014) $

SOURCE CODE

   Available at: r.kappa source code (history)

   Main  index  | Raster index | Topics index | Keywords index | Graphical
   index | Full index

    2003-2016 GRASS Development Team, GRASS GIS 7.2.0 Reference Manual





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.