Code snippets

Code snippets

The snippets are organised into

  • simple snippets to show you how to get going
  • series related snippets, how to work with time series
  • matrix related snippets
  • model related snippets
  • test related snippets (tesing for equality of means or variance)
  • scenarios, snippets that simulate uncertainty

These snippets are also available inside fdm.

Snippet data

These snippets are illustrations of how to use fdm functionality and typically will download data, e.g.

...
CPI = dataFred( "CPIAUCSL" );
...

This means that each time you run this snippet, CPI will be downloaded again as part of the calculation. While this may illustrate how to use functionality, this is not how you would work with data.

In practise you would download CPI yourself, manually but just once, and then use it in (all) your calculations. When it requires updating you would use the Update all data function but you would not download it afresh each time you need to use it.