Description Usage Arguments Examples
Compute trends on NetCDF objects where movartrend
computes moving
linear regressions on the time series, trendresid
and trendcov
compute simple linear regression with the latter returning the covariance
matrix of the standard errors (i.e. for multivariate analyses).
The function convertx
is used to expand an object of type NetCDF
to fit another object of type NetCDF. The standard use case would be to
expand a NetCDF object with ensemble mean global mean temperature to an
object with multiple models and simulations. convertx
is used in
movartrend
to convert a potential predictor for the regression.
1 2 3 4 5 6 7 8 9 10 |
data |
object of type NetCDF containing the time series |
trndln |
length of trend to be computed (in years if time attribute is present) |
x |
optional covariate to be used as predictor |
missthresh |
threshold to indicate what fraction of non-missing values is at least required to run the regression |
robust |
logical, should robust regression be used? |
gaps |
logical, should gaps be allowed for? |
plotable |
logical, should output be rearrange to make it plotable? |
resid |
logical, should residuals of regression be returned? |
x |
object of type NetCDF to be expanded to fit
dimensions of |
data |
object of type NetCDF to be used to match attributes (e.g. time steps etc.) |
dat |
object to infer dimensions of output |
1 2 | ## result should be roughly 1
print(movartrend(t(1:100 + rnorm(100, sd=10)), trndln=100)$trend[1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.