Computes a Theil-Sen estimate and distribution-free confidence interval for the population slope in a simple linear regression model. An approximate standard error is recovered from the confidence interval.
ci.theil(alpha, y, x)
alpha level for 1-alpha confidence
vector of response variable scores
vector of predictor variable scores (paired with y)
Returns a 1-row matrix. The columns are:
Estimate - Theil-Sen estimate of population slope
SE - recovered standard error
LL - lower limit of confidence interval
UL - upper limit of confidence interval
Hollander M, Wolf DA (1999). Nonparametric Statistical Methods. Wiley.