Description Usage Arguments Value
View source: R/data_lei_wasserman.R
The generative model is defined as
X \sim Unif(-1.5, 1.5)
(Y|X=x) \sim .5 N(f(x)-g(x), σ^2(x)) + .5 N(f(x)+g(x), σ^2(x))
where
f(x) = (x-1)^2(x+1),
g(x) = 2√(x+.5)\mathbb{I}(x≥q -.5), and
σ(x) = 1/4 + |x|.
1 | lei_wasserman_data(n = 1000, sigma_function = inner_sigma)
|
n |
number of observations |
sigma_function |
a function for the sigma function. The default is
described above, but using |
data.frame for (x,y) pairs of n
simulations from the
generative process
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.