theil: Perform the Theil nonparametric estimation and confidence...

View source: R/theil.R

theilR Documentation

Perform the Theil nonparametric estimation and confidence interval for a slope parameter.

Description

Perform the Theil nonparametric estimation and confidence interval for a slope parameter.

Usage

theil(x, y, conf = 0.9)

Arguments

x

A vector of values of the explanatory variable.

y

A vector of values of the response variable.

conf

Level of confidence interval.

Value

A list with letters and numbers.

  • est - An estimate, the median of pairwise slopes.

  • ci - A vector of confidence interval endpoints.

Examples

a<-0:19;b<-a^2.5
theil(a,b)

MultNonParam documentation built on Aug. 30, 2023, 9:09 a.m.