Description Usage Arguments Value Examples
Creates a data frame consisting of pairs (x, y) where the first component is distributed according to a given probability density and y satisfies y = m(x) + e where e is a normally distributed error term.
1 | datsim(dens, m, n)
|
dens |
a probability density on [0,1] |
m |
a regression function |
n |
a numeric value, specifying the number of pairs of values to be generated |
an n
x 2-data.frame
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.