gen_smooth: 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)
Value
A dataframe containing the response variable y
and
unidimensional explanatory variable X
.
Arguments
- n
Sample size.
- xlim
Limits of the X
variables to generate from.
- x.jitter
A small amount of jitter is added to the X
variables
generated from a normal distribution with mean zero and standard deviation
equal to x.jitter
.
- seed
(Optional) Random seed.