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 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

gen_smooth(10)


[Package iprior version 0.7.4 Index]