sf | R Documentation |
runs a stock-flows simulation
sf(fcn, x, y, n, w, h, u, v, g = 5, r, s = 1, b = F)
fcn |
= a fetch function |
x |
= a YYYYMM (first-return date, backtest start) |
y |
= a YYYYMM (first-return date, backtest end) |
n |
= a universe (e.g. "R1Mem", or c("EafeMem", 1, "CountryCode", "JP")) |
w |
= a variable (neutrality group) |
h |
= a variable (return) |
u |
= a string (parameter) |
v |
= a folder (must have sub-folders data/derived) |
g |
= an integer (number of bins) |
r |
= classif file |
s |
= a positive integer (return window) |
b |
= a boolean (geometric/artihmetic returns) |
Other sf: sf.bin.nms
, sf.daily
,
sf.detail
, sf.single.bsim
,
sf.subset
,
sf.underlying.data.bin
,
sf.underlying.data
,
sf.underlying.summ
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.