gen_smooth {iprior} | R Documentation |
Generate simulated data for smoothing models
Description
Generate simulated data for smoothing models
Usage
gen_smooth(n = 150, xlim = c(0.2, 4.6), x.jitter = 0.65, seed = NULL)
Arguments
n |
Sample size. |
xlim |
Limits of the |
x.jitter |
A small amount of jitter is added to the |
seed |
(Optional) Random seed. |
Value
A dataframe containing the response variable y
and
unidimensional explanatory variable X
.
Examples
gen_smooth(10)
[Package iprior version 0.7.4 Index]