powered by
Computes a Thiel-Sen estimate of slope for a vector of data.
zyp.sen(formula, dataframe)
A vector containing the coefficients and associated data.
the estimated intercept and slope.
the list of slopes (used for confidence intervals).
the list of intercepts (used for confidence intervals.
the rank of the relation (2).
the residuals of the fitted slope.
the original x axis data.
the original y axis data.
a formula of the form y~x.
an optional data frame to use with the formula.
This routine computes Sen's estimate of slope for a vector of data.
The formula specified is of the form y~x, where y is the data and x is the accompanying dates of observation.
If a data frame is specified, the formula selects columns within that data frame; otherwise, the formula uses the specified variables.
zyp.trend.vector, zyp-package, confint.zyp.
zyp.trend.vector
x <- c(0, 1, 2, 4, 5) y <- c(6, 4, 1, 8, 7) slope <- zyp.sen(y~x)
Run the code above in your browser using DataLab