r.regression.line - Calculates linear regression from two raster maps: y = a + b*x
KEYWORDS
raster, statistics
SYNOPSIS
r.regression.line r.regression.line help r.regression.linemap1=stringmap2=string [output=string]
Parameters:
map1=string
Map for x coefficient
map2=string
Map for y coefficient
output=string
ASCII file for storing regression coefficients (output to screen if file not specified).
DESCRIPTION
r.regression.line Calculates linear regression from two raster maps,
according to the formula y = a + b*x, where x and y represent raster maps.
Optionally saves regression coefficients to an ASCII file.
The result includes the following coefficients:
offset (a) and gain (b), residuals (R),
number of elements (N), medians (medX, medY), standard deviations
(sdX, sdY), and the F test for testing the significance of the
regression model as a whole (F).
EXAMPLE
Comparison of the old and the new DEM in Spearfish: