Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • S s2dverification
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 65
    • Issues 65
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • s2dverification
  • Merge requests
  • !213

Develop trend

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged aho requested to merge develop-trend into develop-Apply Dec 05, 2019
  • Overview 4
  • Commits 21
  • Pipelines 0
  • Changes 9

Hi @nperez

I have finished the development of Trend(). A few things:

  1. The documentation is revised except the examples.
  2. We decided not to reorder the array after Apply(), but since this one has been done so I kept it as reordered.
  3. About the confidence intervals, now the function doesn't saves the intervals of intercept (just like the old Trend(), which contains A1, A2,..., but not A0). However, by this mean, the array cannot align with $trend (which contains A0, A1, A2,...). Do you think it will impact the usage convenience?
data <- array(c(-5, -7, -10:10, 12, 11, 7, 16), dim = c(dat = 1, sdate = 13, ftime = 2))
aa <- Trend(data)

> str(aa)
List of 4
 $ trend     : num [1, 1:2, 1:2] -9.769 0.659 0.962 0.797  #the 2nd dim is c(A0, A1)
 $ conf.lower: num [1, 1, 1:2] 0.37 0.538   #the 2nd dim is c(A1)
 $ conf.upper: num [1, 1, 1:2] 0.949 1.056   #the 2nd dim is c(A1)
 $ detrended : num [1, 1:13, 1:2] 4.11 1.45 -2.21 -1.87 -1.53 ...

Please let me know if you have any suggestion, thanks!

Cheers,
An-Chi

Edited Dec 18, 2019 by aho
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-trend