subsets.fun | R Documentation |
Create a list of subsets (subsets.fun()
); or,
given a list of subsets, test for correct inclusion
(is.nested()
), or strict inclusion (is.strict()
).
is.nested(subsets)
is.strict(subsets)
subsets.fun(n, levels = 4, prob = 0.7)
subsets |
In |
n |
Number of observations in the lowest level (ie level 1, the fastest code) |
levels |
Number of levels |
prob |
Probability of choosing an observation at level
|
Robin K. S. Hankin (subsets.fun()
); Peter Dalgaard (via R-help)
M. C. Kennedy and A. O'Hagan 2000. “Predicting the output from a complex computer code when fast approximations are available” Biometrika, 87(1): pp1-13
is.nested(subsets.fun(20)) # Should be TRUE
data(toyapps)
stopifnot(is.nested(subsets.toy))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.