trend | R Documentation |
Trend analysis and de-trending of data. The three methods trend.coef
,
trend.err
and trend.pval
are somewhat different to the other
trend methods and designed for the use in apply
operations, as
reflected in the different sets of arguments. They are used in the other
methods if the result
argument is set to one of
["coef","err","pval"].
trend(x, result = "trend", model = "y ~ t", ...)
x |
The data object |
result |
"trend" returns the trend; "residual" returns the residual; "coef" returns the trend coefficient; "err" the error estimate; "pval" the p-value. |
model |
The trend model used by |
... |
additional arguments |
new |
if TRUE plot in new window |
Similar type object as the input object
link{climatology}
, link{anomaly}
data(ferder)
plot(annual(ferder,'max'), new=FALSE)
tr <- trend(annual(ferder,'max'))
lines(tr)
grid()
print(attr(tr,'coefficients'))
print(trend(ferder,results='pval'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.