USGS Science⌕ Search

USGS · tm4A7

Kendall-Theil Robust Line (KTRLine--version 1.0)-A Visual Basic Program for Calculating and Graphing Robust Nonparametric Estimates of Linear-Regression Coefficients Between Two Continuous Variables

Abstract

The Kendall-Theil Robust Line software (KTRLine-version 1.0) is a Visual Basic program that may be used with the Microsoft Windows operating system to calculate parameters for robust, nonparametric estimates of linear-regression coefficients between two continuous variables. The KTRLine software was developed by the U.S. Geological Survey, in cooperation with the Federal Highway Administration, for use in stochastic data modeling with local, regional, and national hydrologic data sets to develop planning-level estimates of potential effects of highway runoff on the quality of receiving waters. The Kendall-Theil robust line was selected because this robust nonparametric method is resistant to the effects of outliers and nonnormality in residuals that commonly characterize hydrologic data sets. The slope of the line is calculated as the median of all possible pairwise slopes between points. The intercept is calculated so that the line will run through the median of input data. A single-line model or a multisegment model may be specified. The program was developed to provide regression equations with an error component for stochastic data generation because nonparametric multisegment regression tools are not available with the software that is commonly used to develop regression models. The Kendall-Theil robust line is a median line and, therefore, may underestimate total mass, volume, or loads unless the error component or a bias correction factor is incorporated into the estimate. Regression statistics such as the median error, the median absolute deviation, the prediction error sum of squares, the root mean square error, the confidence interval for the slope, and the bias correction factor for median estimates are calculated by use of nonparametric methods. These statistics, however, may be used to formulate estimates of mass, volume, or total loads. The program is used to read a two- or three-column tab-delimited input file with variable names in the first row and data in subsequent rows. The user may choose the columns that contain the independent (X) and dependent (Y) variable. A third column, if present, may contain metadata such as the sample-collection location and date. The program screens the input files and plots the data. The KTRLine software is a graphical tool that facilitates development of regression models by use of graphs of the regression line with data, the regression residuals (with X or Y), and percentile plots of the cumulative frequency of the X variable, Y variable, and the regression residuals. The user may individually transform the independent and dependent variables to reduce heteroscedasticity and to linearize data. The program plots the data and the regression line. The program also prints model specifications and regression statistics to the screen. The user may save and print the regression results. The program can accept data sets that contain up to about 15,000 XY data points, but because the program must sort the array of all pairwise slopes, the program may be perceptibly slow with data sets that contain more than about 1,000 points.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Gregory E. Granato. 2006. Kendall-Theil Robust Line (KTRLine--version 1.0)-A Visual Basic Program for Calculating and Graphing Robust Nonparametric Estimates of Linear-Regression Coefficients Between Two Continuous Variables. https://doi.org/10.3133/tm4a7

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related USGS reports

Methods and considerations for writing science syntheses for use in decision making on public lands

Natural resource managers are required by multiple laws to use science to inform decisions on public lands in the United States. However, large numbers of science papers about conservation and management of natural resources are published annually, increasing the amount of effort required to maintain awareness of the best available science on relevant topics. As a result, products that synthesize large bodies of science can be a key tool for communicating science to natural resource managers. This report provides guidance for writing synthesis products for resource managers. Core topics and steps include coproducing syntheses with managers, scoping topics relevant to management actions and potentially affected resources, using reproducible literature search and screening methods, extracting and synthesizing multiple types of management-relevant information from science papers, organizing the synthesis product according to decision-making processes, soliciting peer and end-user review, and planning dissemination activities tailored to resource managers. Considering these topics and steps in developing science synthesis products can facilitate natural resource managers’ ability to use science in decision making and help bridge the gap between research and public land management.

Techniques and Methods↗

An updated decision-support tool for grassland birds in the Avian-Impact Offset Method

The Avian-Impact Offset Method (AIOM) quantifies the displacement of grassland birds and waterfowl in response to energy infrastructure and estimates the amount of habitat needed to compensate for this loss. The AIOM converts the number of bird pairs lost owing to avian behavioral avoidance (also referred to as “displacement”) and estimates the site-specific hectares of grasslands or number of wetlands needed to compensate for displaced pairs of grassland birds or waterfowl, respectively. Decision-support tools spatially apply the AIOM to estimate grassland and wetland offsets and guide the location of offsetting measures. The revised decision-support tool for grassland birds and grassland offsets described in this report provides updated grassland layers for calculating offsets and updated bird models for guiding the location of offsetting measures.

Techniques and Methods↗

dMODELS, a MATLAB software package for modeling crustal deformation near volcanic centers and active faults using Global Navigation Satellite System data—User guide

dMODELS is a MATLAB software package that implements the most common analytical models used to interpret deformation measurements near faults and active volcanic centers. This manual focuses on inversion of deformation data from the Global Navigation Satellite System (GNSS). The included case studies emphasize the GNSS inversion component of the software. Source models include pressurized spherical, spheroidal, and horizontal sill (penny-crack) magma reservoirs in a homogeneous, elastic, isotropic, flat half-space. A topography correction is available for the spherical source. Dikes and faults are described following the mathematical notation for the rectangular dislocations in a homogeneous, elastic, flat half-space. Equations have been reviewed for typographical errors present in the original literature and verified against finite-element method numerical models. GNSS data from the 2006 eruption at Augustine Volcano, Alaska; the 1998–2000 unrest at Taal Volcano, Philippines; and the 2009 earthquake in L’Aquila, Italy, are used to demonstrate the application of the software package.

Techniques and Methods↗