gen_smooth: Generate simulated data for smoothing models

Description Usage Arguments Value Examples

Description

Generate simulated data for smoothing models

Usage

1
2
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 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.

Value

A dataframe containing the response variable y and unidimensional explanatory variable X.

Examples

1

iprior documentation built on May 2, 2019, 3:21 a.m.