NNS.MC | R Documentation |
Monte Carlo sampling from the maximum entropy bootstrap routine NNS.meboot, ensuring the replicates are sampled from the full [-1,1] correlation space.
NNS.MC(
x,
reps = 30,
lower_rho = -1,
upper_rho = 1,
by = 0.01,
exp = 1,
type = "spearman",
drift = TRUE,
target_drift = NULL,
target_drift_scale = NULL,
xmin = NULL,
xmax = NULL,
...
)
x |
vector of data. |
reps |
numeric; number of replicates to generate, |
lower_rho |
numeric |
upper_rho |
numeric |
by |
numeric; |
exp |
numeric; |
type |
options("spearman", "pearson", "NNScor", "NNSdep"); |
drift |
logical; |
target_drift |
numerical; |
target_drift_scale |
numerical; instead of calculating a |
xmin |
numeric; the lower limit for the left tail. |
xmax |
numeric; the upper limit for the right tail. |
... |
possible additional arguments to be passed to NNS.meboot. |
ensemble average observation over all replicates as a vector.
replicates maximum entropy bootstrap replicates as a list for each rho
.
Vinod, H.D. and Viole, F. (2020) Arbitrary Spearman's Rank Correlations in Maximum Entropy Bootstrap and Improved Monte Carlo Simulations. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.2139/ssrn.3621614")}
## Not run:
# To generate a set of MC sampled time-series to AirPassengers
MC_samples <- NNS.MC(AirPassengers, reps = 10, lower_rho = -1, upper_rho = 1, by = .5, xmin = 0)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.